Removing/Uninstalling Xcode

Just run the following from a terminal: sudo /Developer/Library/uninstall-devtools –mode=all This is quite old, these days you should just be able to delete the Xcode app.
Read more →

Enable Non-Root Network Traffic Capture in Wireshark in Linux

Install wireshark as normal then run: sudo setcap ‘CAP_NET_RAW+eip CAP_NET_ADMIN+eip’ /usr/bin/dumpcap Then run wireshark and check that you can see your local interfaces. This has been tested in Ubuntu 11.04
Read more →

Converting Audio for Use as Mitel Hold Music

The music file has to be A-law or U-law or G.711 at 8 khz, 8 Bits, Mono. To do this you can either use sox or ffmpeg. To use sox: sox -V input_file.wav -A -c 1 -r 8k -1 output.wav``` Update: Seems some of these options are depreciated, if you run sox with the previous options you get: sox WARN sox: Option -A' is deprecated, use -e a-law' instead. sox WARN sox: Option -1' is deprecated, use -b 8' instead.
Read more →

Converting an Ovf Template to run in VMware Fusion

VMware has a tool called ovftool. You need to do a full, custom install of Fusion to get the ovf tool. It is located in: /Library/Application Support/VMware Fusion/ovftool Change to this directory and run the following to see examples: ./ovftool –help examples``` To run a basic conversion use: ./ovftool path_to_ovf_file.ovf /output_directory/ This will convert the ovf into a format that Fusion can try to boot. This will not enable a virtual machine with incompatable hardware to boot.
Read more →

Resuming Partial Downloads

You can use curl to do this: curl -L -o partial_download -C - http://path_to/partial_download This does require resume support on the server side
Read more →

Convert a Folder into an ISO on the Mac

Open up the terminal on the mac and use the following: hdiutil makehybrid -o image_name.iso folder_name Where folder_name is the folder you want to convert to an ISO.
Read more →

Wireshark Error on the Mac

When you reboot and get this error after installing Wireshark on the mac: Insecure startup item disabled chmodBPF I always forget where the file is that needs the permissions change. So for my failing memory: cd /Library/StartupItems sudo chown -R root:wheel ChmodBPF
Read more →

Exif from a Terminal

It is sometimes useful to see exif information in image files. If you want to examine exif information for an image then exiftool by Phil Harvey is excellent at doing this from the commandline. If you want to quickly examine exif from the internet then I have put together a small shell script which you can pass a url i.e. get_exif_info http://path/to/image.jpg That will pass the file direct to exiftool without saving it.
Read more →

Print The Mac OS X Operating System Version Information From the Terminal

Use: sw_vers In my case: ProductName: Mac OS X ProductVersion: 10.6.4 BuildVersion: 10F569 Update: This still works in os x yosemite: ProductName: Mac OS X ProductVersion: 10.10.2 BuildVersion: 14C1514
Read more →

Displaying Current Network Information Using Geektool in OS X

I put together a script from a variety of sources including some customisations which displays the following information in the form: External : x.x.x.x Ethernet : INACTIVE SSL : x.x.x.x AirPort : x.x.x.x SSID: name Channel: 4 The External entry uses http://checkip.dyndns.org/ to get the current external IP address. Ethernet give you your local wired ipv4 address. SSL displays the current Juniper Network Connect assigned IP address. Airport shows the currently connected wireless network (SSID) and the associated channel.
Read more →