This file contains 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
@echo off | |
setlocal enabledelayedexpansion | |
set TemplateDir=new-templates | |
REM # If no args are given, show help (and exit). | |
if "%1"=="" goto HELP | |
REM # Options | |
if /i "%1" == "/?" goto HELP |
This file contains 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/env python | |
# | |
# Create hard links / junctions to the system-installed packages in | |
# a given virtualenv ("site-packages") directory. | |
# | |
# | |
# Background | |
# ========== | |
# | |
# Some libraries such as wxPython do not support pip installation yet. |
This file contains 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/env python | |
import binascii | |
import socket | |
PORT_DEFAULT = 9 | |
IPADDR_DEFAULT = '<broadcast>' | |
_USAGE = """Usage: | |
python wol.py [options] <MAC address>... |
This file contains 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/env python | |
"""Sample script which uses event.py (improved). """ | |
import event | |
class Publisher(object): | |
# Set event object in class declaration. |
NewerOlder