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 ubuntu:14.04 |
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
#metron_agen.json | |
{ | |
"EtcdUrls": ["http://10.244.0.42:4001"], | |
"EtcdMaxConcurrentRequests": 10, | |
"SharedSecret": "PLACEHOLDER-LOGGREGATOR-SECRET", | |
"LegacyIncomingMessagesPort": 3456, | |
"DropsondeIncomingMessagesPort": 3457, | |
"Index": 0, | |
"Job": "routing_api_z1", | |
"VarzUser": "", |
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
bosh cleanup | |
recreate bosh-lite | |
delete boot2docker |
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
cf logout | |
cf api api.10.244.0.34.xip.io --skip-ssl-validation | |
cf auth admin admin | |
cf co test1 | |
cf target -o test1 | |
cf create-space test1 | |
cf target -o test1 -s test1 |
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 -e -x | |
start=`date +%s` | |
bosh-lite/make_manifest && bosh -n create release --force && bosh -n upload release --rebase && bosh -n deploy | |
endd=`date +%s` | |
diff=`bc < <(echo "($endd - $start)/60")` | |
echo "took $diff to push cf source to the bosh director" | |
#if first deploy | |
start=`date +%s` |
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 -e | |
start=`date +%s` | |
stemcell="bosh-stemcell-389-warden-boshlite-ubuntu-trusty-go_agent.tgz" | |
vagrant destroy --force | |
vagrant up --provider=virtualbox | |
bosh -t 192.168.50.4 login <<HERE | |
admin | |
admin | |
HERE | |
bin/add-route |
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
#some bash first | |
#Get Chrome history file here: http://www.chromium.org/user-experience/user-data-directory | |
#sqlite3 /PATH/TO/History "select datetime(last_visit_time/1000000-11644473600,'unixepoch'),url from urls order by last_visit_time desc" > history_export.txt | |
f = File.open('./history_export.txt') | |
e = f.each_line.lazy.map do |l| | |
next if l =~ /\|file:/ | |
next if l =~ /\|chrome-extension:/ | |
next if l =~ /\|mailto:/ |
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
module Ext | |
class Protocol | |
def initialize(meths, dispatch={}) | |
@dispatch = dispatch | |
@meths = meths | |
end | |
def adapt(obj) | |
w = obj.class.ancestors.detect do |klass| | |
@dispatch[klass] |