Archive for December, 2007
Planet Sky Speed Changer
Update: I have recreated the same script in Rebol, a very expressive scripting language.
If you are using Planet Sky internet service and your server computer is XP Professional then you can schedule the planetskyspeed batch file to automatically change your download speed based on the time of day. Download it here. This batch file assumes that your computer displays time using AM/PM format.
The batch file is 19 lines long - the Rebol script is just 6 lines long. Here it is:
REBOL [] system/schemes/http/user: 'USERNAME system/schemes/http/pass: 'PASSWORD ; 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 speeds: [ 3 3 3 3 4 4 5 5 5 5 4 4 1 1 1 1 1 1 1 1 1 1 1 1] extracthour: func [t] [t/hour] read/custom http://customer.planetsky.com/speed/ reduce [ 'post join "S=" pick speeds (extracthour now/time + 1) ]