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
tmux ls | awk {print $1} | cut -d: -f1 | xargs -I{} tmux kill-session -t {} |
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
# Mysql Comparison | |
# Compare two (or three) values pulled from a mysql show status command. | |
# compare (value 1)/(value 2) or (value 1)/(value 2+ value 3) | |
# represented by default as a percentage. | |
# representation coudl be tweaked however. | |
# also, you might need to tweak mysql commands to use username and password. | |
#!/usr/bin/perl -w | |
use strict; | |
use Getopt::Long; |
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
PATH=$PATH:/opt/bin/ | |
mytop -b | grep qps | cut -d':' -f 3 | cut -d' ' -f 3 |
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/sh | |
# Initalizes ssh agent for use with cron jobs. | |
# I suggest you use a passphrase! | |
# Start the cron job agent | |
/opt/bin/ssh-agent | head -2 > .ssh/agent-info | |
source .ssh/agent-info | |
/opt/bin/ssh-add .ssh/cron_key |
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
ack PATTERN | |
# seriously, that's it. ack automatically ignores .svn, CVS, binary files, and more from your search. No more useless filtering of your filtering. |
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
grep pattern $(find . -type f | grep -v 'CVS') |
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
# I guess I am just old enough to really love this. | |
ack --thpppt |
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
curl http://betterthangrep.com/ack-standalone > ~/bin/ack && chmod 0755 !#:3 |
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
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head |
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
# Dancer aliases to make life easier | |
OlderNewer