Skip to content

Tag Archives: Shell

Automatic cPanel Backup via Curl&Cron v1.1

20-May-08

[UPDATE2 2012-03-14] Use Automatic Dropbox backup instead. [2008-06-23] UPDATE: Please see the updated version. A few months back I posted a shell script for backing up your cPanel account automatically using cron and curl. I updated the file a bit, and now it creates files with monthly names (for me, at least).

Automatic cPanel Backup via Curl&Cron

27-Mar-08

[UPDATE2 2012-03-14] Use Automatic Dropbox backup instead. [UPDATE 2008-05-20] Please see the updated version for this script Justin Cook wrote an article how to backup your cPanel stuff with PHP&Cron. Well, the PHP part didn't really work for me, so I had to create an alternative approach. Enter curl. Put the following in an executable file […]

Tab Completion for ssh hosts

25-Mar-08

Put the following line in .bash_profile in ~. complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh (via macosxhints.com)

Screen Sharing via SSH With A Single Click

04-Dec-07

This tip uses AppleScript and shell script to create an AppleScript application that launches an ssh secured Screen Sharing (VNC client/server, introduced in OS X 10.5) to your remote machine. First, make sure you have Screen Sharing enabled (System Preferences -> Sharing -> Screen Sharing). Second, make sure you can use passwordless ssh login. Third, […]