Skip to content

Instantly share code, notes, and snippets.

@aaroncm
aaroncm / keybase.md
Created July 7, 2016 03:39
keybase.md

Keybase proof

I hereby claim:

  • I am aaroncm on github.
  • I am aaronmalone (https://keybase.io/aaronmalone) on keybase.
  • I have a public key whose fingerprint is 39BD E2AF 67DD 4FF2 25E6 3DEA 68F7 8405 7CF0 616C

To claim this, I am signing this object:

@aaroncm
aaroncm / gist:1357198
Created November 11, 2011 04:30
nginx config for php and apache-style homedir
location ~ /~([^/]+)(/.*.php)$ {
alias /home/$1/public_html$2;
try_files "" =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ /~([^/]+)($|/.*)$ {
alias /home/$1/public_html$2;
@aaroncm
aaroncm / prose-vcprompt.zsh
Created October 18, 2011 04:31
prose theme for oh-my-zsh, altered to use vcprompt
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
}
function vcprompt_info {
vcprompt --format-git "on ± %{$fg[magenta]%}%b%{$reset_color%}%{$fg[green]%}%u%m%a%{$reset_color%}" \
--format-hg "on ☿ %{$fg[magenta]%}%b%{$reset_color%}%{$fg[green]%}%u%m%{$reset_color%}" \
--format "on %s %{$fg[magenta]%}%b%{$reset_color%}%{$fg[green]%}%u%m%{$reset_color%}"
}