Bitcoin donations are welcome:14snQXeLcnJtWUduKZ6rC2MHdPYrYar1Tw

Thursday, May 17, 2012

Stop rtorrent seeding immediately when done


First, the rtorrent ratio settings explained:
First you have to enable the ratio settings in .rtorrent.rc by typing this line:
ratio.enable=

Next, rtorrent has a setting for a minimal ratio to reach AND a minimum uploaded size which it has to reach before the max.ratio action can take place:
ratio.min.set=XXX
and
ratio.upload.set=XXX

I want it to stop immediately, so I set them as low as possible.

Next you can set the max ratio to reach before it stops. I have set it to 1, which equals something like 0.001.


# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
ratio.enable=
ratio.min.set=0
ratio.max.set=1
ratio.upload.set=1b

Saturday, May 12, 2012

Quick mount/umount dir with shortcuts

First make /usr/bin/mount_htpc:

volume="/home/user/htpc"

if mount|grep $volume; then
umount /home/user/htpc
notify-send "[ ] Umounted /home/user/htpc"
else
mount /home/user/XBMC
notify-send "[X] Mounted /home/user/htpc"
fi


Then create a shortcut to this function! Fast and easy!

Smart Lightweight Linux Launch Bar


Try this dmenu launchbar! Works wonders! Simply add a shortcut for it in your system, i.e. .fluxbox/keys:

Mod4 d :Exec $(dmenu_path | dmenu -fn arial -nf grey -sb grey -sf black -nb black)