Skip to content

Instantly share code, notes, and snippets.

View smithbr's full-sized avatar

Brandon Smith smithbr

View GitHub Profile
@smithbr
smithbr / install Flask-Testing with twill override
Last active August 29, 2015 13:56
install Flask-Testing with twill override
pip install twill --allow-external twill --allow-unverified twill
@smithbr
smithbr / Find file in directory
Created February 27, 2014 03:31
Find file in directory
find /abs/path/ -name '*.ext'
git branch newbranch
git checkout newbranch
git push origin newbranch
git checkout master
git branch -d newbranch

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
# vb.gui = true
end
cd /opt/graphite
sudo ./bin/carbon-cache.py start
cd /opt/elasticsearch
sudo nohup ./bin/elasticsearch start &
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
@smithbr
smithbr / fetch
Last active December 17, 2015 17:39
Keeping a GitHub fork updated
git clone git@github.com:user/repo.git
cd repo
git remote add upstream git@github.com:user/repo.git
git fetch upstream
git rebase upstream/master
@smithbr
smithbr / executable
Last active December 17, 2015 18:39
chmod a+x script.py
./script.py <arguments>