Skip to content

Instantly share code, notes, and snippets.

View huwr's full-sized avatar
🏡
Working from home

Huw Rowlands huwr

🏡
Working from home
View GitHub Profile
@huwr
huwr / portclean.sh
Last active December 21, 2015 22:09
Cleans away old Mac Ports
#!/bin/bash -v
#
# clean old mac ports. Can save a few GBs.
# run as root.
echo "Before: "
du -sh /opt
dupes=$(port installed | cut -d '@' -f 1 | uniq -d)
if [ -z "$dupes" ]
@huwr
huwr / itunes.sh
Last active December 18, 2019 23:40
Simple command line iTunes controller
#!/bin/bash
#
####################################
# Music Command Line Control v1.0
# written by David Schlosnagle
# created 2001.11.08
# edit 2010.06.01 Rahul Kumar
# edit 2013.08.09 Huw Rowlands
# edit 2019.12.19 Huw Rowlands - Updated to Catalina (Music.app)
####################################