Adding cowsay to login

To get an interesting picture and quote each time you log in to a terminal session add the following to /etc/profile: echo;fortune | cowsay -f dragon;echo This requires fortune and cowsay to be installed first (through apt or homebrew depending on platform). The optput should look something like: _________________________________________ < Caution: Keep out of reach … Read more

Pandoc commands

I wrote about Pandoc last year, but I’m using it more and more and I’ve found myself editing the original post a fair few times. This is the updated 2016 version that gathers together useful commands I’ve learned so far. Last year I found myself needing to do a lot of document conversion, and maintaining … Read more

Software update scripts

Mac OS X #!/bin/bash echo “updateall v.1.1 for OS X. This software will upgrade all your Apple/Homebrew software.” # Run this as a normal user. Your admin password will be asked for if required. # Update all Apple software (requires admin password at this point) sudo softwareupdate -i -a # Update all software installed via … Read more

Backing up music

To sync music from my Mac Mini to /home/andy/music on my Linux server: sudo rsync -av –rsh=ssh /Volumes/Music-2017-01-22/Created\ 26th\ July\ 2015/iTunes\ Media/Music/ andy@slave27.local:/home/andy/Music/ Output should be something like: Mini:~ andy$ sudo rsync -av –rsh=ssh /Volumes/Music-2017-01-22/Created\ 26th\ July\ 2015/iTunes\ Media/Music/ andy@slave27.local:/home/andy/Music/ Password: andy@slave27.local’s password: building file list … done ./ Akira Sakata & Jim O’Rourke with … Read more