Skip to content

Instantly share code, notes, and snippets.

@thedrow
thedrow / gist:5670402
Created May 29, 2013 13:52
Specifying a provider for a specific box
vagrant up --provider=vmware_fusion
@thedrow
thedrow / gist:5670529
Created May 29, 2013 14:09
How to install a Vagrant plugin
vagrant plugin install vagrant-example-plugin
@thedrow
thedrow / applypatch-msg
Created June 5, 2013 02:01
Empty Python Git hooks folder
#!/usr/bin/env python
import argparse
def parse_args():
pass
def main(args=None):
pass
The executable python2.6 (from --python=python2.6) does not exist
New python executable in /home/omer/Documents/Projects/Python/nose2-testsuite/.travis-solo/2.7/bin/python2.7
Not overwriting existing python script /home/omer/Documents/Projects/Python/nose2-testsuite/.travis-solo/2.7/bin/python (you must use /home/omer/Documents/Projects/Python/nose2-testsuite/.travis-solo/2.7/bin/python2.7)
Installing distribute............................................................................................................................................................................................................................done.
Installing pip................done.
Running virtualenv with interpreter /usr/bin/python2.7
Double requirement given: nose2>=0.4.6 (from -r ./requirements/./testing.txt (line 1)) (already in nose2==0.4.6 (from -r ./requirements/./common.txt (line 5)), name='nose2')
Storing complete log in /home/omer/.pip/pip.log
The executable python3.2 (from --python=python3.2) does not exist
Usin
@thedrow
thedrow / .travis.yml
Created June 15, 2013 16:15
The .travis.yml configuration file of python-baseline.
language: ruby
rvm:
- 1.9.3
language: python
python:
- "2.7"
install:
- pip install -r requirements.txt --use-mirrors
- sudo apt-get update -q
- sudo apt-get install -q virtualbox --fix-missing # Everything falls apart here exactly.
State: - pkg
Name: python
Function: latest
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1201, in call
*cdata['args'], **cdata['kwargs'])
File "/usr/lib/pymodules/python2.7/salt/states/pkg.py", line 516, in latest
cur = {desired_pkgs[0]: cur}
KeyError: 0
@thedrow
thedrow / gist:5809881
Created June 18, 2013 22:05
Remove distribute from all python versions
sudo rm /usr/local/lib/python?.?/dist-packages/distribute*
sudo rm /usr/local/lib/python?.?/dist-packages/setuptools*
@thedrow
thedrow / gist:5809919
Created June 18, 2013 22:10
Install setuptools on all python versions
for p in /usr/bin/python?.?;
do
sudo wget https://bitbucket.org/pypa/setuptools/raw/0.7.3/ez_setup.py -O - | {$p}
done;
@thedrow
thedrow / gist:5809958
Created June 18, 2013 22:15
Reinstall pip on all python versions
for p in /usr/bin/python?.?;
do
sudo easy_install-{p#python} pip
done;
@thedrow
thedrow / gist:5810201
Created June 18, 2013 22:47
How to install vagrant-plugin-bundler
vagrant plugin install vagrant-plugin-bundler