Skip to content

Instantly share code, notes, and snippets.

View brandonheller's full-sized avatar

Brandon Heller brandonheller

View GitHub Profile
@brandonheller
brandonheller / gist:5192dbe6da1a6c77ce12
Created April 15, 2015 21:45
HP VAN install script for Ubuntu 12.04 - why doesn't this work?
#!/bin/bash
# Install script for HP VAN on Ubuntu 12.04
# Instructions from http://h20564.www2.hp.com/hpsc/doc/public/display?docId=c04495134
# Make sure to transfer over the controller zip first:
# Download from http://h17007.www1.hp.com/us/en/networking/solutions/technology/sdn/devcenter/index.aspx#.VS1WbBPF9L4
# https://h10145.www1.hp.com/downloads/SoftwareReleases.aspx?ProductNumber=J9863AAE&lang=&cc=&prodSeriesId=&SoftwareReleaseUId=10608&SerialNumber=&PurchaseDate=
# Older downloads (2.4.3:)
# https://h10145.www1.hp.com/downloads/DownloadSoftware.aspx?SoftwareReleaseUId=11506&ProductNumber=J9863AAE&lang=&cc=&prodSeriesId=&OrderNumber=&PurchaseDate=
# # Transfer over VAN_SDN_Controller_2.4.6_hp-van-sdn-ctlr-2.4.6-x64.zip:
# scp ~/Downloads/VAN_SDN_Controller_2.4.6_hp-van-sdn-ctlr-2.4.6-x64.zip precise:~/
@brandonheller
brandonheller / install_mptcp_precise.sh
Created May 19, 2012 08:16
Install MPTCP apt repo & kernel image on Ubuntu Precise on EC2
#!/bin/bash
# Script to install MPTCP kernel from the MPTCP apt-get repo
# Instructions from http://mptcp.info.ucl.ac.be/pmwiki.php?n=Users.AptRepository
# Get key
wget -q -O - http://mptcp.info.ucl.ac.be/mptcp.gpg.key | sudo apt-key add -
# Add repo
sudo sh -c 'echo "deb http://mptcp.info.ucl.ac.be/repos/apt/debian precise main" > /etc/apt/sources.list.d/mptcp.list'
# Enable proposed: from https://wiki.ubuntu.com/Testing/EnableProposed
sudo sh -c 'echo "" >> /etc/apt/sources.list'
@brandonheller
brandonheller / os_x_install_matplotlib.sh
Created April 25, 2012 05:59
OS X install script for Matplotlib, from source
#!/bin/bash
# Install setuptools?
# http://pypi.python.org/pypi/setuptools
if [[ `sw_vers | grep ProductVersion | awk '{print $2}' | grep 10.6` ]]
then
# Using OS X 10.6.x:
echo "Installing on OS X 10.6..."
curl -OL http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086
mv setuptools-0.6c11-py2.6.egg* setuptools-0.6c11-py2.6.egg
sudo sh ./setuptools-0.6c11-py2.6.egg*