Skip to content

Instantly share code, notes, and snippets.

#!bin/bash
brew install go
mkdir -p ~/Developer/go
export GOPATH=$HOME/Developer/go
go get golang.org/x/tour/gotour
cd $GOPATH
./bin/gotour
@agamdua
agamdua / install-tmux
Last active November 19, 2015 01:56 — forked from rothgar/install-tmux
Install tmux 1.9 on rhel/centos 6
# Install tmux on Centos release 6.5
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
@agamdua
agamdua / fabfile.py
Created March 12, 2014 17:14 — forked from kecs/fabfile.py
from fabric.api import env, local, run, require, cd, sudo
import os
from fabric.context_managers import cd
env.project_name = 'weight'
def prod():
"Use the actual webserver"
from __future__ import unicode_literals
'''
About __future__ from the docs:
-------------------------------
1. A future statement is a directive to the compiler that a particular module should be compiled using
syntax or semantics that will be available in a specified future release of Python.
2. The future statement is intended to ease migration to future versions of Python that introduce
incompatible changes to the language.
3. It allows use of the new features on a per-module basis before the release in
from lettuce import before, after, world
from splinter.browser import Browser
from django.test.utils import setup_test_environment, teardown_test_environment
from django.core.management import call_command
from django.db import connection
from django.conf import settings
from django.test.simple import DjangoTestSuiteRunner
from django.contrib.auth.models import User
import logging