This file contains hidden or 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
function ec2split { | |
chefsearch $* | |
for x in `knife search -a ec2.public_hostname "$CHEF_SEARCH" | grep public_hostname | awk '{print $2}'`; do | |
tmux split-window "ssh ericb@$x" | |
tmux select-layout tiled | |
done | |
tmux kill-pane -t 1 | |
} |
This file contains hidden or 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
SELECT CONCAT(table_schema, '.', table_name), | |
CONCAT(ROUND(table_rows / 1000000, 2), 'M') rows, | |
CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') DATA, | |
CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') idx, | |
CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size, | |
ROUND(index_length / data_length, 2) idxfrac | |
FROM information_schema.TABLES | |
ORDER BY data_length + index_length DESC | |
LIMIT 10; |
This file contains hidden or 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 'serialport' | |
port = "/dev/tty.usbmodem14131" | |
baud_rate = 115200 | |
data_bits = 8 | |
stop_bits = 1 | |
parity = SerialPort::NONE | |
SerialPort.open(port, baud_rate, data_bits, stop_bits, parity) do |sp| | |
while (i = sp.gets.chomp) do |
This file contains hidden or 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/sh | |
### BEGIN INIT INFO | |
# Provides: app_name | |
# Required-Start: $network $remote_fs $syslog | |
# Required-Stop: $network $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: start the app_name application | |
### END INIT INFO |
This file contains hidden or 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
var m = function() { | |
emit(this.id, {opaqueId: this.opaque_id}); | |
} | |
var r = function(key, values) { | |
var all = []; | |
values.forEach(function(x) { | |
all.push(x.opaqueId); | |
}); | |
return {"opaqueId": all.join(", ")}; |
This file contains hidden or 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/sh | |
git filter-branch --env-filter ' | |
an="$GIT_AUTHOR_NAME" | |
am="$GIT_AUTHOR_EMAIL" | |
cn="$GIT_COMMITTER_NAME" | |
cm="$GIT_COMMITTER_EMAIL" | |
if [ "$GIT_COMMITTER_EMAIL" = "<old_email>" ] |
This file contains hidden or 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
javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened'); |
This file contains hidden or 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
Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.jetbrains.heroku.HerokuSettings$2@4e88b2fa,notifier=null,catchExceptions=false,when=1325686895719] on apple.awt.CToolkit@3cd6ad74: Error parsing result [{"git_url":"[email protected]:old-ecc-ggreg.git","name":"old-ecc-ggreg","repo_migrate_status":"complete","stack":"bamboo-mri-1.9.2","slug_size":5160960,"requested_stack":null,"created_at":"2011/03/16 21:40:06 -0700","id":472885,"web_url":"http://old-ecc-ggreg.heroku.com/","repo_size":17686528,"owner_email":"[email protected]","create_status":"complete","dynos":1,"domain_name":null,"workers":0},{"git_url":"[email protected]:ecc-ggreg.git","name":"ecc-ggreg","repo_migrate_status":"complete","stack":"cedar","slug_size":29474816,"requested_stack":null,"created_at":"2011/10/06 20:52:10 -0700","id":1373176,"web_url":"http://ecc-ggreg.herokuapp.com/","repo_size":21331968,"owner_email":"[email protected]","create_status":"complete","dynos":0,"domain_name":{"created_at":"2011/12/05 |