Skip to content

Instantly share code, notes, and snippets.

View davidbarral's full-sized avatar

David Barral davidbarral

View GitHub Profile
@davidbarral
davidbarral / bitbucket.zsh
Last active December 23, 2015 19:39
Function + Aliases to quick open severla Bitbuket pages related to the current Git project.
# USAGE:
#
# Inside a bitbucket repo (remote must be origin) call:
#
# bb -> Go to overview page
# bbs <branch> -> Go to branch source. Defaults to master
# bbc <commit> -> Go to commit diff. Defaults to HEAD
# bbp -> Go to pull requests page
# bbnp -> New pull reques form
#
@davidbarral
davidbarral / client.3.up.tunnelblick.sh
Created October 12, 2011 18:30
Tunnelblick "Set nameserver (alternate 1)" up script modified to support multiple search domains
#!/bin/bash -e
#
# 2011-04-18 Changed from client.up.tunnelblick.sh to client.3.up.tunnelblick.sh and to use leasewatch3
trap "" TSTP
trap "" HUP
trap "" INT
export PATH="/bin:/sbin:/usr/sbin:/usr/bin"
# Process optional arguments (if any) for the script