sed -i '' -e's/[ \t]*$//' $1
the full script can be found here
https://github.com/yikulju/MacGyver/blob/master/rwh.sh
sed -i '' -e's/[ \t]*$//' $1
telnet localhost 61616
sudo su
ipfw add pipe 1 src-port http
ipfw pipe 1 config delay 200 bw 700kbit/s
ipfw flush
setInterval( function () {
// this is the element you want to blink
var box = $(".blinking_thing");
if (box.data("fade") === 1) {
box.fadeIn().data("fade", 2);
} else {
box.fadeOut().data("fade", 1);
}
}, 800)
rm -rf /opt/local/share/java/activemq/data
sudo scutil --set HostName [NewMacComputerName]
dscacheutil -flushcache

/System/Library/LaunchDaemons
/System/Library/LaunchAgents
/Library/LaunchDaemons
/Library/LaunchAgents
~/Library/LaunchAgents
ws.agile.1PasswordAgent.plist
launchctl remove ws.agile.1PasswordAgent