Skip to content

Instantly share code, notes, and snippets.

View thestonefox's full-sized avatar

The Stonefox thestonefox

View GitHub Profile
@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-service-manager
Created February 21, 2014 14:46
Docker container management script to start, stop and restart containers from source
#!/bin/bash
function start() {
docker build -rm -t myapp_image .
docker run -d -name myapp_container myapp_image
}
function stop() {
docker stop myapp_container && docker rm myapp_container
}
@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
@thestonefox
thestonefox / thestonefox-vimrc
Last active May 29, 2019 07:02
Basic .vimrc with pathogen, solarized theme, nerdtree
execute pathogen#infect()
syntax on
set number
set expandtab
set tabstop=2
set background=dark
set t_Co=256
let g:solarized_termcolors=256
let g:solarized_termtrans=1