This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# in irssi you can set off this with /exec -o irc-dramatic.pl <o hai der> | |
use strict; | |
use warnings; | |
use Encode qw/decode/; | |
binmode(*STDOUT, ":utf8"); | |
$|=1; | |
my @a=(0x3000,0xff01,0x201d,0xff03..0xff06,0x2019,0xff08..0xff0c,0x2212,0xff0e..0xff5d,0x301c,0xffe5,0xffe2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# in irssi you can set off this with /exec -o irc-dramatic.pl <o hai der> | |
use strict; | |
use warnings; | |
use Encode qw/decode/; | |
binmode(*STDOUT, ":utf8"); | |
$|=1; | |
my @a=(0x3000,0xff01,0x201d,0xff03..0xff06,0x2019,0xff08..0xff0c,0x2212,0xff0e..0xff5d,0x301c,0xffe5,0xffe2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$1" == "wired" ]; then | |
IFACE=eth0 | |
else | |
IFACE=wlan0 | |
fi | |
if [ "$2" == "trusted0" ]; then | |
MAC="ff:ee:bb:cc:dd:aa" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o nounset | |
DEST=/mnt/backup/l | |
INCLUDE=/etc/backup-include | |
EXCLUDE=/etc/backup-exclude | |
LOGPATH=/var/log | |
MAX=100m | |
#if ! mount | grep -q $DEST; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Tmux based TeX editor helper | |
EDITOR="${EDITOR:-vim}" | |
DOCUMENT="${1:-deriv}" | |
SESSIONID="tmuxtexex_${DOCUMENT}_$$" | |
tmux new-session -d -s "${SESSIONID}" && tmux new-window -t "${SESSIONID}:1" -n 'TmuxTeXEx' "$EDITOR ${DOCUMENT}.tex" && tmux split-window -v -l 6 -t "${SESSIONID}:1" "while :; do inotifywait -e modify \"${DOCUMENT}.tex\" && { make || pdflatex \"${DOCUMENT}.tex\" } && jobs %% || { evince \"${DOCUMENT}.pdf\" & }; done" && tmux select-pane -U -t "${SESSIONID}:1" && tmux -2 attach-session -t "${SESSIONID}" |
NewerOlder