|
|
|
How to show PHP source code | Ninan stats in Conky from RSS | ADSL Fix
How to show PHP source code To format PHP code to be shown via HTML run php -s -q source.php > output.html. Handy!
Quick Conky status for Ninan A quick one liner to add to your .conkyrc to get your Ninan download stats into Conky
${execi 30 curl -s -S http://ninan-host:9090/ninan/rssfeed?XXX=YYY| grep "title" | sed -e "s/<title>//g" -e "s/<\/title>//g" |dos2unix}
Output:
Ninan Status:
Ninan is running @ 0 KB/s
Total time remaining:
Total size: 0 KB
Fixing my ADSL Line Another quick little scrip that I've knocked up. For some reason, known only by BT, my ADSL connection randomly loses sync and the ADSL service needs to be restarted. This is a bit tricky when I'm not at home, so I made a script that's run regualrly from cron. It checks that the line is in sync, if it isn't then it automatically restarts the necessary services .
<?
|
| potchin [v]: To alter excessively or needlessly |
|
| Server up 1 days 10 hrs 51 mins. |