Select Page

EncFS

Homebrew “brew install encfs”, and mount your Volume “encfs -o volname=MySecretDrive ;Path/To/EncFS /Volume/MySecretDrive”.   Using encfs in Mac OS X Still in the terminal, you can create an encrypted filesystem in Dropbox using this command: encfs...

CLI – Speedtest

How to test speed from command line: wget -O /dev/null http://link-to-speedtest/ – you know, the file is downloaded right into the RAM Memory so it isn’t hard-disk dependent anymore. Misc test files: SoftLayer: wget -O /dev/null...

OSX Wireless / Airport Terminal Commands

Make airport app available: sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport Airport app commands: Supported arguments: -c[<arg>] –channel=[<arg>] Set arbitrary channel on the card...

Bash Script Hosts file Ad Blocker

Put in cron or run manually. #!/bin/bash # If this is our first run, save a copy of the system’s original hosts file and set to read-only for safety if [ ! -f /etc/hosts.bak ] then echo “Saving copy of system’s original hosts file…” sudo...

Misc useful OSX commands

Remove the “Last login” message from the Terminal touch .hushlogin Enable/Disable Firewall defaults write /Library/Preferences/com.apple.alf globalstate -int 1 0 = off 1 = on for specific services 2 = on for essential services   launchctl load -w...

Driftnet – misc scripts

#!/bin/bash mpixW=250 mpixH=300 if [ “x`which identify`” != x ] ; then echo `which identify` found! echo Tossing images less than $mpixW pixels. while true ; do read img imgType=$( expr `identify -format ‘%e’ “$img”` ) if [...