Skip to content

Instantly share code, notes, and snippets.

@fixje
fixje / wol.sh
Created July 31, 2013 13:14
wake up host with wol and connect
## wake up xbox and connect
ssh-xbox () {
nc -z -w3 xboxkl.no-ip.org 333
if [ $? -eq 1 ]
then
echo "Waking up XBOX"
wakeonlan -i xboxkl.no-ip.org -f ~/.xbox.wol
sleep 50
fi
for i in $(seq 1 5)
@fixje
fixje / pyshellutil.py
Created July 31, 2013 09:09
python shell output utils
import sys
from datetime import datetime
def cprint(string, color=None):
"""
print text and timestamp on console
:color: (black|yellow|cyan|blue|red|white|grey|purple)
"""