Deskflow

The latest Synergy fork: https://github.com/deskflow/deskflow I’ve not tested this yet as I only have one computer with me. But it looks worth a try.

Bulk image manipulation

Resizing Navigate to the directory containing the images (via the terminal) and then enter the following command: mogrify -resize 20×20 *.png Which will resize all PNG files to 20×20 pixels. This can obviously be altered to cater for different sizes and file types. Conversion The command to convert a whole folder of images from .bmp … Read more

Save a list of all my music to a file

SSH to slave27.local and then issue one of the following commands: cd Music tree -l > /home/andy/Dropbox/music-2017-01-28.txt Which gives output that looks something like this: ├── !!! │   └── Thr!!!er │   ├── 01 Even When The Water’s Cold.m4a │   ├── 02 Get That Rhythm Right.m4a │   ├── 03 One Girl _ One Boy.m4a │   ├── … Read more

Installing Homebrew

Homebrew is a package manager for command line tools on macOS. It can be installed by issuing the following command: /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” Packages can be installed with brew install <packagename> and updated with brew update.

Creating a bootable macOS USB drive

This assumes that the installer is already in /Applications, and that the USB drive is called HighSierra sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/HighSierra –applicationpath /Applications/Install\ macOS\ High\ Sierra.app –nointeraction &&say Done This device can be used to upgrade existing installations, do clean installations, and various repair/admin tasks.

Converting .epub to .mobi

This assumes the source file is DRM free, and that the machine already has calibre installed. for book in *.epub; do echo “Converting $book”; ebook-convert “$book” “$(basename “$book” .epub).mobi”; done