Skip to content

Instantly share code, notes, and snippets.

@feralhosting
feralhosting / delugeremoteinfo.sh
Last active September 29, 2015 15:01
All deluge thin client connection settings from a one liner command.
printf "$(hostname -f)\n$(whoami)\n$(sed -rn 's/(.*)"daemon_port": (.*),/\2/p' ~/.config/deluge/core.conf)\n$(sed -rn "s/$(whoami):(.*):(.*)/\1/p" ~/.config/deluge/auth)\n"
@feralhosting
feralhosting / lftp-old.sh
Last active August 29, 2015 14:18
LFTP - Automated sync from seedbox to home SFTP script - original
#!/bin/sh
login="username"
pass="password"
host="server.feralhosting.com"
remote_dir="/folder/you/want/to/copy"
local_dir="/cygdrive/s/lftp/somefolder/where/you.want/your/files/"
trap "rm -f /tmp/synctorrent.lock" SIGINT SIGTERM
if [ -e /tmp/synctorrent.lock ]
then
@feralhosting
feralhosting / lftp-new.sh
Last active August 29, 2015 14:18
LFTP - Automated sync from seedbox to home SFTP script with generic name
#!/bin/bash
login="username"
pass="password"
host="server.feralhosting.com"
remote_dir="/folder/you/want/to/copy"
local_dir="/cygdrive/s/lftp/somefolder/where/you.want/your/files/"
base_name="$(basename "$0")"
lock_file='/tmp/'"$base_name"'.lock'
trap 'rm -f '"$lock_file"'' SIGINT SIGTERM