My new shirt design

Ok, so I want a new shirt, something smartish so I could wear it to work and decided that rather than just buy one off a shelf I wanted to do one myself… this is the result:

It reads “i > u” and in case you don’t “get it” – nevermind. That’s the beauty of it :)

Twitter Weekly Updates for 2009-09-06

  • Back from town, Matthew St was crazy, shame the rain came along and ruined a nice day. Hopefully tomorrow will be better weather. #
  • @wilw Good luck! :) RT: @Schwarzenegger: http://twitpic.com/fv6vr – Just had a briefing at command center for the "Station Fire" in LA Cnty #
  • Oo0o0o! I've been invited to the "Private August 2009 Technology Preview" for VMware Workstation etc. Suhweet! :D #
  • Back from Matthew St Festival Day 2 – man I'm knackered. 4gb of shots to process – yey #
  • Self-cooked chickkkaan fajitas! Hell yes!! #
  • Nothing in True Blood surprises me anymore – I suppose that's why I still love it #
  • I wonder why gay men and women really have "pride" parades. I seriously, really do want to know. #
  • I'm proud of being hetero, but I don't feel the need to take it to the streets and sing it from the rooftops. What's up with that? #
  • @wilw Wil, is this you on reddit? http://bit.ly/pp1GF (it made front page) #
  • RT: @wilw: Penny Arcade on Disney's acquisition of Marvel: http://is.gd/2O2YR #
  • Nehalem server online :D Yey! Just waiting for #zimbra v6.0 to be released as GA #
  • @feliciaday – I just watched "Socializing Sucks" The interchange with the FPS girl & the "prettier outfits" line was great – Nice writing! #
  • So… it's a tad windy then. #
  • Zimbra 6.0 goes GA! http://bit.ly/227lef Yey!! #
  • Had a bitch of a day! Manged to get LOADS done this week though. Loads of tech to play with this week too w00t #
  • I think I'm going to have a power nap right here… #
  • /me fucking HATES zimbra right now. Fucking PoS #
  • I made Zimbra my bitch. And now I'm going to sleep – I'm going to be a walking zombie tomorrow. #
  • @Hampo Is it your birthday? If so, Happy Birthday, well done! You made it another year :) #
  • Offski to the GRWE Dog Show to help out some greyhounds! I get to see my two! Yey!!!!!! #
  • Back from the Greyhound West of England "Family Fun Day and Dog Show" – another successful year! :D Legs are knackered, lotsa photos tho!! #
  • This CoD4 Star Wars mod looks awesome: http://bit.ly/OTIxV too bad there aren't any lightsabres :( #

Firewall editing script

Ok, here’s a wee script I threw together to help myself and any other sys admins who have to make a lot of edits to the iptables firewall in Red Hat / CentOS. It basically opens up the /etc/sysconfig/iptables file to allow you to make your edit(s) and then when you close the editor, it’ll ask you if you want to apply the changes straight away, or apply them immediately to allow for testing, then unload the iptables module after a set amount of time (2 minutes as defined on line 2) in case anything broke.

#!/bin/bash
TESTING_MINS=2
vim /etc/sysconfig/iptables
clear
QUESTION1="Do you want to restart the firewall now? (hit 't' to test for $TESTING_MINS min(s)) [y/n/t] "
echo -n $QUESTION1

a=""
while test -z "$a"
do
        read -n1 a
        echo ""

 case "$a" in
  Y|y)
        echo -e "Restarting...\n\n"
		/sbin/service iptables restart
  ;;
  N|n)
        exit 0
  ;;
  T|t)
        echo -e "Time is now `date +%H:%M` -firewall service will be stopped at `date +%H:%M -d "+$TESTING_MINS min"`\nIf your test was successful, you will need to manually start the service again by running:\nservice iptables start"
        echo "/sbin/service iptables stop &> /dev/null" | at now + $TESTING_MINS min &> /dev/null
		echo ""
        /sbin/service iptables restart
  ;;
  *)
        a=""
        echo -n $QUESTION1
  ;;
  esac
done

P.S. Any scripts I write and publish here are © Rob Freeman and released under the GPL unless otherwise stated.