Skip to content

Instantly share code, notes, and snippets.

View senorprogrammer's full-sized avatar
🇨🇦
Hackety hack

Chris Cummer senorprogrammer

🇨🇦
Hackety hack
View GitHub Profile
@senorprogrammer
senorprogrammer / hack.sh
Created March 31, 2012 16:54 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@senorprogrammer
senorprogrammer / switchgo.sh
Created September 23, 2019 23:21 — forked from fatih/switchgo.sh
Switch between go version using https://github.com/golang/dl
function switchgo() {
version=$1
if [ -z $version ]; then
echo "Usage: switchgo [version]"
return
fi
if ! command -v "go$version" > /dev/null 2>&1; then
echo "version does not exist, download with: "
echo " go get golang.org/dl/${version}"