06-07-2016

The first line will determine which volume your Raspberry PI SD card is.
The second line will copy the contents of the SD card to an *.img file.


diskutil list
sudo dd if=/dev/rdiskN of=/the/destination/pi_backup.img bs=1m


source

18-05-2016

The following will copy the contents of the source_dir to the time-stamped folder.
$ cp -r ~/source_dir/ ~/backup_dir/$(date +%Y-%m-%d_%H:%M:%S)/

09-05-2016

Generating a certificate:

# Point to the letsencrypt directory
$ cd /root/letsencrypt;
$ ./letsencrypt-auto certonly --standalone --email developer@example.com -d example.com -d www.example.com

05-05-2016

Here is a solution to use a fully functioning text editor within a docker container when ssh’d into a remote linux host.


# Log on to your container
docker exec -it grave_ride /bin/bash

# Run this command to fix the terminal
export TERM=xterm

# Continue to open and edit your file in your faviourite text editor.
nano my-file.js


22-04-2016


sudo apt-get upgrade
cd ~
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
service nginx stop
./letsencrypt-auto certonly --standalone --email admin@wherever.com -d example.com -d www.example.com

http://clearleft.com/thinks/357