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
#!/bin/bash | |
COUNT=0 | |
MIN_IP_ADDRESS=1 | |
CLASS=192.168.1 | |
MAX_IP_ADDRESS=10 | |
CONNECTION_TIMEOUT=1 | |
HOSTNAME=$(hostname) | |
printf "_______________________________________________\n\n" |
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
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> | |
<!DOCTYPE serverlist SYSTEM "serverlist.dtd"> | |
<serverlist size="335"> | |
<notes> | |
This list is generated by http://www.domaininformation.de. | |
If you want to use this list automatically | |
you have to visit http://www.domaininformation.de/xml-serverlist.html | |
and follow the using terms. |
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
import wx | |
import glob | |
""" Example at http://zetcode.com/wxpython/skeletons/ """ | |
class DemoFrame(wx.Frame): | |
def __init__(self): | |
wx.Frame.__init__(self, None, -1, "wx.ListCtrl in wx.LC_REPORT mode", size=(600, 400)) |
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
__author__ = 'jrosco' | |
# Import smtplib for the actual sending function | |
import smtplib | |
# Import the email modules we'll need | |
from email.mime.text import MIMEText | |
textfile = '../files/test' |
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
import wx | |
""" Copied for m http://wiki.wxpython.org/Simple%20wx.Notebook%20Example """ | |
class PageOne(wx.Panel): | |
def __init__(self, parent): | |
wx.Panel.__init__(self, parent) | |
wx.StaticText(self, -1, "This is a PageOne object", (20,20)) |
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
perl -i -pe 's{^#!/bin/sh}{#!/bin/bash}' /path/to/file |
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 | |
#http://www.wxpython.org/docs/api/wx.lib.combotreebox-module.html#ComboTreeBox | |
from wx.lib.combotreebox import ComboTreeBox | |
import wx | |
class MyFrame(wx.Frame): |
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
#!/bin/bash | |
# Uses a PID file to add daemon-like behavior to an arbitrary program. | |
################################################################################ | |
usage() { | |
echo "Usage: `basename $0` PROGRAM {start|stop|restart|force-stop|force-restart|status} [PIDFILE|PID]" >&2 | |
echo "Where: PROGRAM is an executable file." >&2 | |
echo " PIDFILE is the file that contains (or will contain) the PID." >&2 | |
echo " PID is a process id to use in place of a PIDFILE." >&2 | |
} |
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 | |
# found on <http://files.majorsilence.com/rubbish/pygtk-book/pygtk-notebook-html/pygtk-notebook-latest.html#SECTION00430000000000000000> | |
# simple example of a tray icon application using PyGTK | |
import gtk | |
def message(data=None): | |
"Function to display messages to the user." | |
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 dbus | |
import os | |
import pwd | |
user_id = pwd.getpwuid(os.getuid()).pw_uid | |
icon_file = '/home/jrosco/.face' | |
bus = dbus.SystemBus() |
OlderNewer