;; @module ushaper.lsp ;; @description simple uTorrent shaper ;; @author Cyril Slobin ;; @location http://slobin.pp.ru/newlisp/ushaper.lsp ;; @version $Id: ushaper.lsp,v 1.9 2010/05/09 14:56:42 slobin Exp $ ; TODO: http://forum.utorrent.com/viewtopic.php?pid=461130#p461130 ; You should customize the following settings. ; Try not to lose your parentheses balance! (setq ip "192.168.0.2") (setq port "49158") (setq user "athens") (setq pass "greece") (setq other-screen-saver "ssmarque.scr /s") (setq monitor-power-off nil) ; or true (setq idle '( (max_dl_rate 400) (max_ul_rate 50) (max_ul_rate_seed 70) )) (setq busy '( (max_dl_rate 285) (max_ul_rate 50) (max_ul_rate_seed 50) )) ; The customizable settings end here. Do not edit anything ; below this line! Or do, I don't care... (when (!= (main-args -1) "/s") (exit)) (setq HWND_BROADCAST 65535) (setq WM_SYSCOMMAND 274) (setq SC_MONITORPOWER 61808) (setq url-base (format "http://%s:%s/gui/" ip port)) (setq ticket (base64-enc (append user ":" pass))) (setq auth (format "Authorization: Basic %s\r\n" ticket)) (setq token-url (append url-base "token.html")) (setq token-regex {\