Skip to content

Instantly share code, notes, and snippets.

View orymate's full-sized avatar

Máté Őry orymate

  • Budapest, Hungary
  • 18:34 (UTC +01:00)
View GitHub Profile
@orymate
orymate / gist:2772045
Created May 22, 2012 22:26
my interactive zsh functions
# 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 () {
@rsdy
rsdy / .vimrc
Created April 26, 2012 14:24
vim prezentation macros
au! BufRead,BufNewFile *.prez setfiletype prez
@ijanos
ijanos / sleepsort.bash
Created June 15, 2011 16:41
Sleep sort!
#!/bin/bash
# Sleep sort
# http://dis.4chan.org/read/prog/1295544154
function f() {
sleep "$1"
echo "$1"
}
#!/bin/bash
trap 'killall speaker-test; exit' INT
cat <<A
usage: 'j': +10Hz
'k': -10Hz
'J': -100Hz
'K': +100Hz
A
# 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'
#!/bin/bash
if [ $# -lt 1 ]
then
echo "Usage: rotate (rot|ar)" >&2
exit 10
fi
set -v
cd /home/maat/Maildir/ || exit 1
/* 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;}