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
from ryu.base import app_manager | |
from ryu.controller import ofp_event | |
from ryu.controller.handler import MAIN_DISPATCHER | |
from ryu.controller.handler import CONFIG_DISPATCHER | |
from ryu.controller.handler import set_ev_cls | |
class L2Switch(app_manager.RyuApp): | |
def __init__(self, *args, **kwargs): | |
super(L2Switch, self).__init__(*args, **kwargs) |
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
import pacparser | |
import urllib2 | |
pac_url="" | |
response = urllib2.urlopen(pac_url) | |
f = open('proxy.pac', 'w') | |
f.write(response.read()) | |
f.close() | |
pacparser.init() |
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 | |
apt-get update | |
export PASSWORD=yourpassword | |
export HOSTNAME='scalr' | |
export DOMAIN='.local' | |
export SCALR_BASE=/usr/local/scalr | |
export SCALR_HOME=$SCALR_BASE/scalr-home |
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
- shell: curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python | |
when: "{{ pip_version.stdout| ge_version('7.0.0') }} == False" | |
def ge_version(given, minimum_required): | |
if given == "": | |
return False | |
def versiontuple(v): | |
return tuple(map(int, (v.split(".")))) | |
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
firehole/resources/rule.rb | |
actions :create | |
default_action :create | |
attribute :rule_name, :name_attribute => true | |
attribute :port, :default => false | |
attribute :host, :default => false | |
firehole/providers/rule.rb | |
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
require File.dirname(__FILE__) + "/lib/utils/helpers" | |
require File.dirname(__FILE__) + "/config/euca" | |
include Helpers | |
conn = ridley_connection() | |
env=ARGV[0] | |
nodes=[] | |
obj = [] | |
conn.sync do | |
nodes = node.all |
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
brew squid options | |
'--disable-debug' | |
'--disable-dependency-tracking' | |
'--disable-eui' | |
'--enable-delay-pools' | |
'--enable-esi' | |
'--enable-icap-client' | |
'--enable-ssl' | |
'--enable-forw-via-db' | |
'--enable-cache-digests' |
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
http://blog.nugrahais.me/2013/01/28/troubleshooting-101-compiling-apache-traffic-server-on-osx-10-8-2-via-homebrew/ |
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
Query system tables; | |
SELECT * from system.schema_keyspaces; |
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
# vagrant | |
vagrant box add precise64 http://files.vagrantup.com/precise64.box | |
vagrant init precise64 | |
vagrant ssh | |
#https://help.ubuntu.com/community/Skype - install skype | |
sudo dpkg --add-architecture i386 | |
apt-get install -y python-software-properties | |
sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" | |
sudo apt-get update -y && sudo apt-get install skype -y | |
#install headless support |
OlderNewer