some blag

July 21, 2008

rsync with an SSH transport

Filed under: tips — andrew @ 6:22 pm

scp can’t resume transfers where it left off. rsync can.

All it takes is:
rsync -r –partial –progress –rsh=ssh user@host:sekrit/ .

You may also want to add the —bwlimit option to specify the maximum transfer speed (in kbytes/s).

July 18, 2008

Gajim Asterisk AMI Script

Filed under: misc, ohdearhereallywrotethat — andrew @ 7:27 pm

Following in the great Siman’s footsteps, I have written a script that is actually useful*.

What script, you ask? A script to place a call, using Asterisk’s AMI, if Gajim receives a message while you are away. If someone calls you and your status is not online, the script will call the phone number you provided and let you know the name of the person that has messaged you and their message. Festival is used to perform the text-to-speech function.

A working Festival installation is required, using the Perl AGI method. It can easily be modified to use the Festival() command instead if desired. pyst is also required for communicating with the AMI.

The script is located at this git repository.

* Please negate when reading.

Powered by WordPress