Wednesday, 27 March 2013
Tuesday, 22 January 2013
Raspberry Pi
1st thing to do to play with GPIO
http://www.raspberrypi-spy.co.uk/2012/05/install-rpi-gpio-python-library/
http://pypi.python.org/pypi/RPi.GPIO
#1 : if there is error when install RPi.GPIO, need to install python dev at
http://www.raspberrypi-spy.co.uk/2012/05/install-rpi-gpio-python-library/
http://pypi.python.org/pypi/RPi.GPIO
#1 : if there is error when install RPi.GPIO, need to install python dev at
sudo apt-get install python-dev
Sunday, 20 January 2013
ping
sos : http://www.cyberciti.biz/faq/crontab-every-10-min/
0 * * * * /bin/ping -c 10 8.8.8.8 || reboot
every hour will ping to check connection
* * * * * /bin/ping -c 10 8.8.8.8 || reboot
every minutes will ping to check connection
* * * * * /bin/ping -q -s 1 -c 60 8.8.8.8 & > /dev/null
0 * * * * /bin/ping -c 10 8.8.8.8 || reboot
every hour will ping to check connection
* * * * * /bin/ping -c 10 8.8.8.8 || reboot
every minutes will ping to check connection
* * * * * /bin/ping -q -s 1 -c 60 8.8.8.8 & > /dev/null
Friday, 28 December 2012
[Links] #1
- http://www.twitch.tv
- http://ipv4.download.thinkbroadband.com/1GB.zip
- http://thelinuxvideo.com/
- http://wiki.openwrt.org/toh/tp-link/tl-mr3020
- http://pami.biz.tm/index.php
- http://code.google.com/p/winsetupfromusb/
- http://darkgiovy.forumcommunity.net/?t=52893584
- http://ps3repack.com
- http://www.linuxandlife.com/2011/11/how-to-configure-xmonad-arch-linux.html
- http://mydigitallife.info
userscript
- http://userscripts.org/scripts/show/154011
- http://userscripts.org/users/496689/scripts
- http://userscripts.org/scripts/show/118033
youtube
- http://www.youtube.com/watch?v=eCo0ZC5jq7M
[HowTo] Check celcom balance and quota using sms
celcom balance
bal
send to 2888
celcom quota
vol status
send to 22188
bal
send to 2888
celcom quota
vol status
send to 22188
Tuesday, 2 October 2012
[HowTo] Check public ip via command line
mkdir bin
cd /bin
nano whatismyip.sh
#!/bin/bash
echo Your external IP Address is :
#wget http://www.whatismyip.com -O - -o /dev/null | grep '<TITLE>' | sed -r 's/<TITLE>WhatIsMyIP\.com \- //g' | sed -r 's/<\/TITLE>//g'
wget http://automation.whatismyip.com/n09230945.asp -O - -o /dev/null
echo
exit 0
press ctrl+o
press enter
press ctrl+x
chmod u+x
to run :
/bin/./whatismyip.sh
ref : http://ubuntuforums.org/showthread.php?t=526176
cd /bin
nano whatismyip.sh
#!/bin/bash
echo Your external IP Address is :
#wget http://www.whatismyip.com -O - -o /dev/null | grep '<TITLE>' | sed -r 's/<TITLE>WhatIsMyIP\.com \- //g' | sed -r 's/<\/TITLE>//g'
wget http://automation.whatismyip.com/n09230945.asp -O - -o /dev/null
echo
exit 0
press ctrl+o
press enter
press ctrl+x
chmod u+x
to run :
/bin/./whatismyip.sh
ref : http://ubuntuforums.org/showthread.php?t=526176
Subscribe to:
Posts
(
Atom
)