Skip to content

Instantly share code, notes, and snippets.

@v-thomp4
v-thomp4 / gist:bf4eacf394477b490014
Created September 21, 2015 09:16
install go1.4.2 ubuntu 14.04
apt-add-repository ppa:git-core/ppa
apt-get update
apt-get install git
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source /root/.gvm/scripts/gvm
apt-get install bison
gvm install go1.4.2
gvm use go1.4.2 [--default]
@v-thomp4
v-thomp4 / gist:d69d7d5f01ee7d73a197
Created October 21, 2015 10:17
pip install PIL
pip install PIL --allow-external PIL --allow-unverified PIL
@v-thomp4
v-thomp4 / gist:1b039dc6a707e01e85ff
Last active November 24, 2015 08:26
jboss/wildfly dockerfile

Dockerfile

FROM jboss/wildfly
RUN /opt/jboss/wildfly/bin/add-user.sh admin Admin#70365 --silent
CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-c", "standalone-full.xml", "-b", "0.0.0.0", "-bmanagement", "0.0.0.0"]]

Build

docker build --tag=jboss/wildfly-admin .
@v-thomp4
v-thomp4 / gist:e149841a33e5977b02e7
Created November 24, 2015 08:38
Remove all docker container Exited
docker ps -a | grep Exited | cut -d' ' -f1 | xargs docker rm
@v-thomp4
v-thomp4 / gist:de16542c6ed7bea17318
Created December 3, 2015 04:19
Install docker ubuntu 14.04
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install docker-engine
@v-thomp4
v-thomp4 / gist:ef7f0fb521a3c5156e40
Created December 7, 2015 05:03
Instal oracle java 8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
@v-thomp4
v-thomp4 / gist:6ff3438a052b1356acc1
Created December 7, 2015 05:08
Install mesos, marathon
# Install java 8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
# Setup
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)
pkill -9 -f acdcli
umount -l /path/to/mount
acdcli mount /path/to/mount
ip rule add from x.x.x.x table 128
ip route add table 128 to y.y.y.y/y dev ethX
ip route add table 128 default via z.z.z.z
Where x.x.x.x is your Linode's public IP, y.y.y.y/y should be the subnet of your Linode's public IP address, ethX should be your Linode's public Ethernet interface, and z.z.z.z should be the default gateway.
@v-thomp4
v-thomp4 / gist:de270d059638a77da5f0
Created March 23, 2016 09:58
Finding external IP using external services
$ wget -qO- http://ipecho.net/plain ; echo