Skip to content

Instantly share code, notes, and snippets.

View phildobbin's full-sized avatar

Phil Dobbin phildobbin

View GitHub Profile
@phildobbin
phildobbin / gitosis_setup_fedora.sh
Created April 15, 2012 06:02 — forked from cdwilson/gitosis_setup_fedora.sh
Gitosis setup instructions for Fedora
# Gitosis setup instructions for Fedora
# copied from http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
# and modified to work on Fedora
# Comment out the next two lines after you've changed this script to match your config
echo "This is not meant to be run as a script!"
exit 0
# do you have setuptools or distribute? if not, run these commands
cd ~/src
@phildobbin
phildobbin / periodic-port.sh
Created April 7, 2012 02:36 — forked from fracai/periodic-port.sh
A script to update MacPorts, fetch outdated ports, compile them, remove the inactive duplicates, and then sign the archives.
#!/bin/sh
# update macports and list outdated software
HOST=$(hostname|sed "s/.local//")
/bin/echo "=== Update MacPorts" | /opt/local/bin/gawk '{print strftime("%b %d %H:%M:%S"),"'${HOST}'",$0; fflush() }'
/opt/local/bin/port selfupdate --nosync 2>&1 | /opt/local/bin/gawk '{print strftime("%b %d %H:%M:%S"),"'${HOST}'",$0; fflush() }'