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
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
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
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
# 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
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 | |
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 | |
######################################################################## | |
# Ventrilo start script | |
# LSB style init script -- assumes you have LSB package installed | |
# running on CentOS/RHEL 6 | |
# Description : This is an LSB-style startup script for Ventrilo | |
# | |
# Authors : Quinn Murphy | |
# | |
# Version : 1.0 |
OlderNewer