Skip to content

Instantly share code, notes, and snippets.

View robbernabe's full-sized avatar

Rob Bernabé robbernabe

View GitHub Profile
@robbernabe
robbernabe / gist:a843dd09ade413fabbe15537fa6055b2
Created September 26, 2017 16:55
Custom zsh theme based on sorin
# sorin.zsh-theme
# screenshot: http://i.imgur.com/aipDQ.png
hg_prompt_status() {
INDEX=$(hg status 2> /dev/null)
STATUS=""
if $(echo "$INDEX" | grep '^? ' &> /dev/null); then
STATUS="$ZSH_THEME_HG_PROMPT_UNTRACKED$STATUS"
fi
if $(echo "$INDEX" | grep '^A ' &> /dev/null); then

Keybase proof

I hereby claim:

  • I am robbernabe on github.
  • I am robbernabe (https://keybase.io/robbernabe) on keybase.
  • I have a public key ASBR7FPk0WNS8VxCWBHn8ILWiX9CjNX-H2JEw7mWs89rggo

To claim this, I am signing this object:

@robbernabe
robbernabe / proxy.pac
Last active September 21, 2016 14:58
Direct-all Proxy PAC File
function FindProxyForURL(url, host) {
return "PROXY localhost:8118";
}
### Keybase proof
I hereby claim:
* I am robbernabe on github.
* I am robbernabe (https://keybase.io/robbernabe) on keybase.
* I have a public key whose fingerprint is 3F47 CB73 B81B 76F6 3A7A 80CC C1B2 D11F 58B2 589B
To claim this, I am signing this object:
@robbernabe
robbernabe / README.md
Last active August 29, 2015 14:08
My ZSH Theme

cipher.zsh-theme

My custom zsh theme, heavily inspired by sorin.zsh-theme. Features both git and mercurial repo support. You'll need to enable the mercurial oh-my-zsh plugin for mercurial repo support.

@robbernabe
robbernabe / fabfile.py
Created April 3, 2014 15:06
Masterless Puppet with Fabric
from fabric.api import task, lcd, local, env, sudo
from fabric.contrib.project import rsync_project
#################################################
# Globals
env.port = 13412
env.use_ssh_config = True
env.disable_known_hosts = True