This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | |
| """ |