Skip to content

Instantly share code, notes, and snippets.

@sk7
sk7 / keybase
Created February 23, 2017 21:22
### Keybase proof
I hereby claim:
* I am sk7 on github.
* I am stefank (https://keybase.io/stefank) on keybase.
* I have a public key ASDrvLIdYPCjWYLbJKZU7WGp0uHCXcZXPf_NZeUKL50sCQo
To claim this, I am signing this object:
@sk7
sk7 / gist:7084721
Created October 21, 2013 14:24
apt-get instead of chef recipes
$script = <<SCRIPT
# postgres 9.2
wget http://anonscm.debian.org/loggerhead/pkg-postgresql/postgresql-common/trunk/download/head:/apt.postgresql.org.s-20130224224205-px3qyst90b3xp8zj-1/apt.postgresql.org.sh
echo | sudo sh apt.postgresql.org.sh
sudo apt-get -y install postgresql-9.2
sudo pg_createcluster 9.2 ubergrape
# redis
sudo apt-get -y install redis-server
@sk7
sk7 / .zshrc
Last active December 17, 2015 21:59
Open man pages with Dash ( http://kapeli.com/dash )
# Use Dash for man pages
man() {
if [ $# -eq 1 ]; then
command open dash://man:"$@";
else
command man $@;
fi
}