This file contains hidden or 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
| [alias] | |
| dl = diff HEAD^1 | |
| dsl = diff HEAD^1 --stat | |
| pep8-last = !git diff HEAD^1 | flake8 --diff | |
| ru = remote update | |
| plog = log --pretty=\"format:%Cgreen %h %Creset| %Cblue%G?%Creset | %ar | %aN | %Cblue%s\" | |
| delete-merged = !git branch --merged | grep -v '^* master$' | grep -v '^ master$' | xargs git branch -d | |
| [diff] | |
| tool = bc3 |
This file contains hidden or 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 | |
| # For Chromium | |
| gvfs-mime --set x-scheme-handler/http chromium-browser.desktop | |
| gvfs-mime --set x-scheme-handler/https chromium-browser.desktop | |
| # For Chrome | |
| gvfs-mime --set x-scheme-handler/http google-chrome.desktop | |
| gvfs-mime --set x-scheme-handler/https google-chrome.desktop |
This file contains hidden or 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 | |
| # Disable graphical Grub due to Xen defect which causes a blank screen | |
| sed -i "s/#GRUB_TERMINAL=console/GRUB_TERMINAL=console/g" /etc/default/grub | |
| # Set Grub timeout to a reasonable amount | |
| sed -i "s/GRUB_TIMEOUT=5/GRUB_TIMEOUT=20/g" /etc/default/grub | |
| # Update Grub | |
| update-grub |
This file contains hidden or 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
| xe sr-create name-label=USB type=iso device-config:legacy_mode=true device-config:location=/mnt/usbdrive content-type=iso |
This file contains hidden or 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
| pip install launchpadlib==1.10.2 --allow-external launchpadlib --allow-unverified launchpadlib --allow-external lazr.authentication --allow-unverified lazr.authentication | |
| pip install lazr.restfulclient>=0.9.19 --allow-external lazr.authentication |
This file contains hidden or 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
| set -g default-terminal "xterm-256color" | |
| set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
| source '/usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf' | |
| bind-key -n "C-Left" select-window -t :- | |
| bind-key -n "C-Right" select-window -t :+ | |
| bind-key -n "C-q" detach | |
| bind-key -n "C-k" kill-session |
This file contains hidden or 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 | |
| # This script is designed to be used on a disposable cloud server | |
| sudo apt-get update | |
| sudo apt-get install git -y | |
| mkdir -p Repositories | |
| cd Repositories | |
| git clone https://github.com/openstack-dev/devstack.git | |
| git clone https://github.com/stackforge/barbican.git |
This file contains hidden or 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 | |
| BASEDIR="/home/john/Repositories/github/CAFE" | |
| VENV_NAME="CloudCAFE" | |
| PROJECT="CAFE-Dev" | |
| set_env_and_clear(){ | |
| num_panes=`tmux list-panes -t $PROJECT:$1 | wc -l` | |
| for (( i=0; i<${num_panes}; i++ )); | |
| do |
This file contains hidden or 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 | |
| set +x | |
| # Setup all of the pyenvs | |
| export PATH="$HOME/.pyenv/bin:$PATH" | |
| export CONFIGURE_OPTS='--enable-shared' | |
| eval "$(pyenv init -)" | |
| pyenv shell 2.7.6 | |
| pyenv virtualenvwrapper | |
| pyenv rehash |
This file contains hidden or 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 | |
| sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl | |
| sudo pip install virtualenvwrapper | |
| git clone https://github.com/yyuu/pyenv.git ~/.pyenv | |
| git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper | |
| echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc | |
| echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc |