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
rsync -av --exclude='.git*' src dest |
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 node | |
MongoWatch = require('mongo-watch'); | |
new MongoWatch({ | |
format: 'pretty', | |
db: 'XXX', | |
host: 'XXX' | |
}).watch(); |
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
git fetch | |
git checkout master | |
git branch --merged | grep -v "\*" | grep -v devel | xargs -n 1 git push --delete origin | |
# this last step is for colleagues to clean up their local tracking branches | |
git remote prune origin |
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
ssh -L 9000:localhost:8983 ubuntu@host | |
# forwards remote port 8993 to local port of localhost:9000 as seen by host |
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_cmd > some_file 2>&1 & |
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 bash | |
# | |
# Ground Control CLI | |
# Copyright Percolate Studio 2014 | |
if [ $# -gt 0 ]; then | |
ssh -t -x $1@build.gcontrol.io gcontrol ${*:2} | |
else | |
echo "Ground Control CLI" | |
echo "Usage: gcontrol.sh <app> [command] [arguments]" |
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_gcc | |
install_package "ruby-1.8.7-p173" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p173.tar.gz" | |
install_package "rubygems-1.3.6" "http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz" ruby |
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 tcpdump -w logged.pcap -i en1 -vv dst port 9090 |
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
IAB = { | |
closed: true, //for meteor to detect closed state | |
open: function(url, cb, goalURL) { | |
var that = this; | |
cordova.exec(function(params) { | |
switch (params.type) { | |
case 'loadstart': | |
console.log('IAB: loadstart url, ' + params.url); |
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
open -a Google\ Chrome --args --disable-web-security |
OlderNewer