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/bash | |
## start/stop Riak dev instances | |
## http://docs.basho.com/riak/latest/tutorials/fast-track/Building-a-Development-Environment/ | |
set -e | |
RIAK_HOME=$HOME/riak-1.2.1 | |
RIAKDEVDIR=$RIAK_HOME/dev | |
DEVDIRS=(dev1 dev2 dev3 dev4) |
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 | |
#wget http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1 \ | |
# -O /tmp/certdata.txt | |
VCS=cvs | |
REPODIR=~/repos/$VCS/mozilla_certdata | |
CVSROOT=":pserver:[email protected]:/cvsroot" | |
CERTDATA="mozilla/security/nss/lib/ckfw/builtins/certdata.txt" | |
VCS_COMMAND="$VCS -d $CVSROOT checkout $CERTDATA" |
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 | |
if [ $1 ]; then | |
if [ -f $1 ]; then | |
/bin/egrep -v '^(\s+#|#)|^(\s+$|$)' $1 | |
else | |
echo " $1 is not a regular file" | |
exit 1 | |
fi | |
else | |
echo " $0 needs a filename to strip.." |
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 | |
# OpenStack bzr to github mirror | |
# | |
# Requirements: | |
# git >= 1.7.0, bzr >= 2.0.0, | |
# git-bzr-ng, python-fastimport, patched bzr-fastimport | |
##### | |
# Set up unpackaged source: | |
# mkdir ~/src |
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 comment_author, comment_author_email, comment_content, comment_parent | |
INTO OUTFILE '/tmp/comment_export.csv' | |
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' | |
LINES TERMINATED BY '\n' | |
FROM wp_comments; |
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 | |
# script to tail and strip irclogs for piping to espeak: | |
# don't forget -t for a TTY if calling script remotely via ssh, ie: | |
# ssh -t host.example.com ~/bin/tailirclog_espeak.sh debian-devel | espeak | |
if [ ${1} ]; then | |
CHAN=${1} | |
LOG=$( find ${HOME}/irclogs/ -name \#*${1}.log ) | |
if [[ ! -f ${LOG} ]]; then | |
echo; echo "cannot find logs for #${CHAN}"; echo | |
else |
NewerOlder