Skip to content

Instantly share code, notes, and snippets.

View johnpipi's full-sized avatar

John Peterson johnpipi

View GitHub Profile
#! /bin/bash
# install docker & docker-compose on Ubuntu 16.04 xenial
echo "starting install"
apt-get update
apt-get install -y apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
#echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/docker.list
@johnpipi
johnpipi / install.sh
Last active August 29, 2015 14:17
Running Pow with Apache
#!/bin/sh
echo "Uninstalling POW"
curl get.pow.cx/uninstall.sh | sh #if you have pow installed
echo "Setting port for POW to 88"
echo 'export POW_DST_PORT=88' >> ~/.powconfig; source ~/.powconfig;
echo "Installing Vhost for POW *.dev"
sudo curl -L https://gist.githubusercontent.com/soupmatt/1058580/raw/zzz_pow.conf -o /private/etc/apache2/other/zzz_pow.conf
echo "Restarting Apache"
sudo apachectl restart
echo "Installing POW"
@johnpipi
johnpipi / gist:3866860
Created October 10, 2012 16:52
Git Commands
# Merge and squash commits
git checkout master
git merge --squash private_feature_branch
git commit -v
# Remove a tag locally
git tag -d mytag
# Remove tag remotely
git push origin :refs/tags/mytag