This file contains 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 | |
# This script is used to allocate a large number of IP addresses on EC2 | |
# and associate them with network interfaces | |
# | |
# It gets the list of network interfaces | |
#TODO: You don't actually need instance_id, i don't think | |
if [ $# -eq 0 ] ; then |
This file contains 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 | |
#location of https://github.com/buffer/thug/tree/master/samples on disk | |
samples=/var/www/thug/samples | |
#prefix for webserver (should end in /) | |
url_prefix=http://127.0.0.1/thug/samples/ | |
#thug.py location | |
thug_install=/opt/thug/src/thug.py |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<iecompatlistdescription> | |
<version>1152921504606910219</version> | |
<ttl>1</ttl> | |
<ua id="IE9Custom">Mozilla/5.0 (compatible; MSIE 9.0; $PLATFORM; Trident/5.0)</ua> | |
<domain docMode="EmulateIE10">blogs.adobe.com</domain> | |
<domain docMode="EmulateIE10">job.icbc.com.cn</domain> | |
<domain docMode="EmulateIE10">labs.adobe.com</domain> | |
<domain docMode="EmulateIE10">lifestyle.aol.co.uk</domain> | |
<domain docMode="EmulateIE10">misc-apache.aol.co.uk</domain> |
This file contains 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
#!/usr/bin/env python | |
#----------------------------------------------- | |
# Name: fetch_cosm.py | |
# | |
# Purpose: retrieve historical hi-res data from cosm | |
# Usage: ./fetch_cosm.py >>cosm_data.csv | |
# History: | |
# Date Author Remarks | |
# 15Oct2012 RW Created. | |
#----------------------------------------------- |
This file contains 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
#!/usr/bin/env python | |
#----------------------------------------------- | |
# Name: fetch_cosm.py | |
# | |
# Purpose: retrieve historical hi-res data from cosm | |
# Usage: ./fetch_cosm.py >>cosm_data.csv | |
# History: | |
# Date Author Remarks | |
# 15Oct2012 RW Created. | |
#----------------------------------------------- |
This file contains 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
sudo su | |
apt-get update | |
apt-get -y upgrade | |
apt-get -q -y install scons libboost-dev libboost-doc libboost-all-dev autoconf shtool libtool python-pefile python-httplib2 mongodb python-pymongo python-pip git subversion make unzip | |
pip install cssutils | |
pip install chardet --upgrade #poss not required | |
easy_install beautifulsoup4 | |
easy_install pymongo |
This file contains 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
# This needs to be in your server's config somewhere, probably | |
# the main httpd.conf | |
# NameVirtualHost *:80 | |
# This line also needs to be in your server's config. | |
# LoadModule wsgi_module modules/mod_wsgi.so | |
# You need to manually edit this file to fit your needs. | |
# This configuration assumes the default installation prefix | |
# of /opt/graphite/, if you installed graphite somewhere else |
This file contains 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
Creating directory /opt/local/Python-2.7.12/bin | |
Creating directory /opt/local/Python-2.7.12/lib | |
/usr/bin/install -c python /opt/local/Python-2.7.12/bin/python2.7 | |
if test -f libpython2.7.so; then \ | |
if test -n "" ; then \ | |
/usr/bin/install -c -m 555 /opt/local/Python-2.7.12/bin; \ | |
else \ | |
/usr/bin/install -c -m 555 libpython2.7.so /opt/local/Python-2.7.12/lib/libpython2.7.so.1.0; \ | |
if test libpython2.7.so != libpython2.7.so.1.0; then \ | |
(cd /opt/local/Python-2.7.12/lib; ln -sf libpython2.7.so.1.0 libpython2.7.so) \ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.