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
# change to temp dir | |
t() { | |
if [ ${1:-0} -eq 0 ] | |
then | |
mkdir -p ~/temp/$(date -d "${1:-0} days ago" +%Y%m%d) | |
fi | |
cd ~/temp/$(date -d "${1:-0} days ago" +%Y%m%d) | |
} | |
# scp if any arguments contain a colon | |
scp () { |
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
au! BufRead,BufNewFile *.prez setfiletype prez |
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 | |
# Sleep sort | |
# http://dis.4chan.org/read/prog/1295544154 | |
function f() { | |
sleep "$1" | |
echo "$1" | |
} |
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 | |
trap 'killall speaker-test; exit' INT | |
cat <<A | |
usage: 'j': +10Hz | |
'k': -10Hz | |
'J': -100Hz | |
'K': +100Hz | |
A |
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
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
setopt autocd extendedglob nomatch notify | |
bindkey -v | |
# End of lines configured by zsh-newuser-install | |
# The following lines were added by compinstall | |
zstyle :compinstall filename '/home/maat/.zshrc' |
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 | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: rotate (rot|ar)" >&2 | |
exit 10 | |
fi | |
set -v | |
cd /home/maat/Maildir/ || exit 1 |
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
/* cat *css* | grep Courier | sed 's/{.*$//' | tr '\n' ',' */ | |
pre,code,#readme div.plain pre,.blob-editor textarea,.add-pill-form textarea.key_value,#code_search_instructions table.instruction tr td.inst,#code_search_results .result .snippet,.commit-ref,#compare .commits code,#compare .commits tr.merge td.author,#compare .commits tr.merge td.date,#facebox p.commit-id,#forkqueue table td.sha,#forkqueue table td.message,#forkqueue table td.human,#forkqueue table.choice td.code,#repos .repo .commit .machine,input.url-field,#commit .human .message,#commit .machine,#commit .commit_oneline .commit,#commit .commit_oneline .tree,#toc,#browser table,#files .file .meta .info,#files .file .data pre,#files .file .line-data,#files .file .line-number,#files .file .data td.line_numbers,#files .meta .bubble,.news pre,.news code {font-family:monospace!important;} |