Grilled Corn & Compound Butter

Throwing this on my blog so I don’t forget what I put into the compound butter:

2 sticks unsalted butter
healthy pinch of kosher salt…maybe 1/2 tsp
3-4 grinds of black pepper
3 cloves garlic finely chopped
4-5 shakes of smoked paprika
A few dribbles of adobo sauce from a can of chipotle peppers…maybe 1 tsp
juice and rind of one lime

I know it’s not terribly scientific but so little of my cooking is. Peel the corn husks back leaving them attached and remove the silk from the corn. Put them back together and soak the ears for around 30 minutes. Throw them on the cooler part of a hot charcoal grill and cook them for half an hour, turning them once halfway through. Let them cool for a few, shuck the corn, then put a little of the butter on it and eat.

Iterate Through Directories and Backup SVN Repositories

I found this useful as I have quite a few SVN repositories that I’m responsible for maintaining. Due to the large number I didn’t want to manually specify each directory in an array as that involved more upkeep that I really wanted to have on my plate. This script will go through a target parent directory and perform an svnadmin dump on each repository to a gzipped file in the target backup directory. So for example if all of your svn repositories reside in /srv/svn and you want your gzip files to end up in /home/backup then create a shell script from the below info and set SVN_PARENT=/srv/svn and SVN_BACKUP=/home/backup. Right now I only care about keeping a day of backups so this script deletes all of the backup files prior to performing the next round of backups. Delete that line if you’re looking to keep a larger backup history.

#/bin/bash

SVN_PARENT=
SVN_BACKUP=
DATE=`date '+%F'`
TEMPFILE=/tmp/svn_backup.tmp

touch $TEMPFILE
ls $SVN_PARENT >> $TEMPFILE
DIR_LIST=( `cat "$TEMPFILE" `)

rm -rf $SVN_BACKUP/*.gz

for i in "${DIR_LIST[@]}"
do
        svnadmin dump $SVN_PARENT/$i | gzip > $SVN_BACKUP/$i.$DATE.svn.gz
done

rm -rf $TEMPFILE

Copyright © All Rights Reserved · Green Hope Theme by Sivan & schiy · Proudly powered by WordPress