Skip to content

Instantly share code, notes, and snippets.

View thestonefox's full-sized avatar

The Stonefox thestonefox

View GitHub Profile
@thestonefox
thestonefox / phantomjs-install
Created February 11, 2015 09:16
Install PhantomJS (Run as sudo su)
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 &&
mv phantomjs-1.9.7-linux-x86_64.tar.bz2 /usr/local/share/. &&
cd /usr/local/share/ &&
tar xjf phantomjs-1.9.7-linux-x86_64.tar.bz2 &&
ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64 /usr/local/share/phantomjs &&
ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/bin/phantomjs
@thestonefox
thestonefox / nodejs-install
Last active August 29, 2015 14:15
Ubuntu NodeJS Install (Requires sudo su)
apt-get install -y python-software-properties python &&
add-apt-repository ppa:chris-lea/node.js &&
echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list &&
apt-get -q -y update &&
apt-get install -y nodejs
@thestonefox
thestonefox / env_setup.sh
Last active August 29, 2015 14:05
Base Environment Setup
#!/bin/bash
echo "Moving to home directory"
cd ~/
echo "Setting up git defaults"
git clone https://github.com/thestonefox/git-config.git
ln -s git-config/.gitconfig ~/.gitconfig
ln -s git-ignore/.gitignore ~/.gitignore
git-config/helpers.sh
@thestonefox
thestonefox / docker-root-ssh-access
Created February 21, 2014 14:27
SSH Access For Docker
#Setup SSH Access
RUN apt-get -q -y update
RUN apt-get install -q -y openssl whois openssh-server vim nano
RUN mkdir -p /root/.ssh
RUN chown -R root:root /root/.ssh
RUN chmod -R 600 /root/.ssh/
RUN mkdir -p /var/run/sshd
RUN printf "#!/bin/bash \
\n echo \"root:password\" |chpasswd \
@thestonefox
thestonefox / thestonefox-solarized-tmux
Created February 8, 2014 13:17
Alternative Solarized tmux theme
#### COLOUR (Solarized 256)
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244 #base0
set-window-option -g window-status-bg default