- You don't find time. You make time.
- Practice the way you gonna perform
- "Its not the shit that you play. It's the shit you don't play." - Miles Davis
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] |
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
#/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
#/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
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
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
#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
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
Use this script to find local git repos where you have something uncommitted. | |
The script searches your hard-drive for repos using the unix "locate" command. To check which directories locate might skip see /etc/updatedb.conf | |
PRUNEPATHS variable lists directories which are skipped, so remove folders to include them in search. | |
For more info, run "man locate" and "man updatedb" | |
OlderNewer