Skip to content

Instantly share code, notes, and snippets.

View zph's full-sized avatar

Zander Hill zph

View GitHub Profile
@zph
zph / .zshrc
Created February 10, 2013 02:59
autoload -z edit-command-line
zle -N edit-command-line
bindkey "^X^E" edit-command-line
@zph
zph / master_services_agreement_cc_contract.md
Last active December 13, 2015 18:09
CC Licensed Services Agreement

Creative and Technical Services Agreement

This CREATIVE AND TECHNICAL SERVICES AGREEMENT (“Agreement”) is an agreement between Zander Hill, (“Developer”) and the party set forth in the Project Estimate (“Customer” or “you” or “your”) incorporated herein by this reference and applies to the purchase of all services ordered by Customer (collectively, the “Services”). The parties understand, acknowledge and agree that this is an online agreement which is being entered into in conjunction with the Services.

..='cd ..'
...='cd ../..'
....='cd ../../..'
.....='cd ../../../..'
......='cd ../../../../..'
a='fasd -a'
ack='noglob ack -i --nogroup'
ai='$(fasd -sia)'
autojump='nocorrect autojump'
b=bg
alias rsync='rsync -v --progress --partial'
alias dstamp='date +%Y-%m-%d'
alias ack='noglob ack -i --nogroup'
alias less="less -R"
alias qlf='qlmanage -p "$@" >& /dev/null'
alias q='exit'
# alias mkdir='mkdir -p' # Make mkdir recursive
alias cdd='cd - ' # goto last dir cd'ed from
alias cd-='cd - '
alias df='df -kH'
@zph
zph / tr.sh
Created February 18, 2013 07:37
#!/bin/sh
#
# resolve symlinks
#
PRG=$0
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
@zph
zph / .vimrc
Created February 18, 2013 19:58
fu! PryToggle()
let @a = "require 'pry'; binding.pry"
let wordsFromLine = getline('.')
if @a ==? wordsFromLine
:normal dd
else
:normal "ap
endif
endfu
@zph
zph / .vimrc
Created February 18, 2013 20:21
" Run current file in ruby
imap <Leader>rr <ESC>:!ruby %<CR>
nmap <Leader>rr :!ruby %<CR>
@zph
zph / .vimrc
Created February 18, 2013 20:28
" Open Marked.app
" only works on OSX with Marked.app installed
imap <Leader>m <ESC>:!open -a Marked.app "%"<CR><CR>
nmap <Leader>m :!open -a Marked.app "%"<CR><CR>
@zph
zph / .vimrc
Created February 19, 2013 04:02
" Open Marked.app
" only works on OSX with Marked.app installed
imap <Leader>m <ESC>:!open -a Marked.app "%"<CR><CR>
nmap <Leader>m :!open -a Marked.app "%"<CR><CR>
#!/usr/bin/env ruby
require 'gmail'
input = "#{ARGV.join(" ")}"
USER, PASSWORD = File.read(File.expand_path( "~/.gmailrc" )).split("\n")
Gmail.new(USER, PASSWORD) do |gmail|
gmail.deliver do
to USER