This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VERSION="0.90.1" | |
apt-get update | |
apt-get install -y openjdk-7-jre-headless | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$VERSION.tar.gz | |
tar -xzf elasticsearch-$VERSION.tar.gz | |
mv elasticsearch-$VERSION /opt/elasticsearch | |
rm elasticsearch-$VERSION.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, os, time, atexit | |
from signal import SIGTERM | |
class Daemon: | |
""" | |
A generic daemon class. | |
Usage: subclass the Daemon class and override the run() method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
______________ | |
< bacongobbler > | |
-------------- | |
\ ^__^ | |
\ (oo)\_______ | |
(__)\ )\/\ | |
||----w | | |
|| || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y git | |
git config --global user.name "Matthew Fisher" | |
git config --global user.email me@bacongobbler.com | |
git config --global alias.co checkout | |
git config --global alias.ci commit | |
git config --global alias.s status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PACKAGES="python-pip python-dev libpq-dev golang virtualbox virtualbox-dkms virtualbox-qt curl xchat vim" | |
sudo apt-get install -qy $PACKAGES | |
# install sublime text; requires a key to be added to the repositories | |
curl https://gist.github.com/bacongobbler/5747364/raw/75474b51394497f14c31ab613852391bddd016c9/sublime_text.sh | sh | |
# install git with config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TARGET=$(cat ~/.stackato/client/target) | |
TOKEN=$(json < ~/.stackato/client/token [\"$TARGET\"]) | |
curl -X $1 --silent -k --header "Authorization:${TOKEN}" $TARGET$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bacongobbler's conky config | |
background yes | |
use_xft yes | |
xftfont Sans:size=8 | |
xftalpha 1 | |
update_interval 1 | |
total_run_times 0 | |
own_window yes | |
own_window_transparent yes | |
own_window_type normal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Begin /etc/nsswitch.conf | |
passwd: files | |
group: files | |
shadow: files | |
publickey: files | |
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 | |
networks: files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sed -i '' "s/${1}/${2}/g" $3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script installs all dependencies needed on a Ubuntu 12.04 x64 | |
# computer for developing custom services on Stackato. Run this | |
# script as root (either logged in as root, or with sudo). | |
# | |
PACKAGES="virtualbox virtualbox-dkms virtualbox-qt curl vim git wget" | |
apt-get install -y $PACKAGES |
OlderNewer