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
from metar.Datatypes import direction | |
import alphasign | |
import socket | |
import threading | |
import time | |
import collections | |
_PR = collections.namedtuple('_PR', | |
['mt', 'tn', 'a', 'b', 'icao', 'c', 'd', 'e', 'f', |
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
#!/usr/bin/python | |
"""Simple power on/off control for Onkyo receivers. | |
Derived from https://github.com/compbrain/Onkyo-TX-NR708-Control | |
""" | |
__author__ = 'Will Nowak <[email protected]>' | |
import socket | |
import sys |
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 minecraft_status | |
status = minecraft_status.GetMCStatus('my_server_hostname') | |
if status[0]: | |
print 'Server is online' | |
print 'MOTD is: %s' % status[1] | |
print 'Currently %s/%s players online' % (status[2], status[3]) | |
else: | |
print 'Server is offline' |
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
#!/usr/bin/python | |
__author__ = 'Will Nowak <[email protected]>' | |
import socket | |
def GetUdpSocket(): | |
return socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
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
#!/usr/bin/python | |
"""Download a whole page of wallpapers from simpledesktops.com. | |
Requires: | |
- BeautifulSoup: http://www.crummy.com/software/BeautifulSoup/#Download | |
Usage: | |
$ ./simpledesktops_download.py "http://simpledesktops.com/browse/6/" | |
Downloading http://parsed.url.com/directory/subdir/wallpaper.png to wallpaper.png |