View install-watchman.sh
#!/bin/sh -ex
apt-get install -y autoconf automake libssl-dev libtool pkg-config python-dev
cd /tmp
git clone https://github.com/facebook/watchman.git
cd watchman
./autogen.sh
./configure
make
make install
View example.sh
perl -MTest::Most=no_plan -E 'sub foo { +{ @ARGV } }' -wE 'cmp_deeply(foo(), { foo => re("^[0-9]+") }, "data as expected")' foo 100
View install-slack-fedora.sh
#!/bin/sh -ex
#
# download the rpm from here: https://slack.com/downloads/linux
dnf install -y libappindicator && rpm -i slack-3.0.5-0.1.fc21.x86_64.rpm
View README.md

Directory structure

.
├── hiera
│   └── common.yaml
├── hiera.yaml
├── manifests
│   └── default.pp
├── README.md
View install-r.sh
#!/bin/sh -ex
codename=`lsb_release -c | tr -d '[:space:]' | cut -d ':' -f 2`
sources='/etc/apt/sources.list'
[ `grep -c CRAN ${sources}` -eq 0 ] && \
echo "deb https://http://mirrors.ebi.ac.uk/CRAN/bin/linux/ubuntu ${codename}/" >> ${sources}
sudo apt-get update
sudo apt-get install -y r-base
View log4perl.t
use 5.026;
use Test::More;
use Test::Log::Log4perl;
package Foo::Bar::Quux {
use Moose;
use Log::Log4perl;
Log::Log4perl::init(
\ join(
"\n",
View delete-remote-branches.sh
#!/bin/sh -ex
cd ${local_checkout_dir}
git fetch
for branch in `git branch -r | grep -v 'master' | cut -d/ -f2-`; do git push -d origin ${branch}; done
View install-postgresql-9.4.sh
#!/bin/sh -ex
# install postgres 9.4
# add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt `lsb_release -sc`-pgdg main"
add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt zesty-pgdg main"
wget --quiet -O - https://postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
apt-get update
apt-get install -y postgresql-9.4
# listen from all addresses
View gist:1ee8129c05b1d4083551c0b29bbeb747
git config --global alias.tree "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --date=relative"
View install-emacs-25.sh
#!/bin/sh -ex
# update the PATH ...
PATH="/usr/local/bin:${PATH}"
# install autoconf ...
cd /tmp
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar xvfvz autoconf-2.69.tar.gz
cd autoconf-2.69