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 Tkinter | |
FONT = ('courier new',24,'bold') | |
def main(): | |
mainWindow = Tkinter.Tk() | |
mainWindow.title("Color Preview") | |
mainFrame = Tkinter.Frame(mainWindow) |
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
package main | |
import( | |
"image/png" | |
"image/draw" | |
"image" | |
"io" | |
"os" | |
"fmt" | |
"encoding/base64" |
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 | |
LAPTOP="LVDS1" | |
DVI1="HDMI1" | |
DVI2="HDMI2" | |
DOCK_WIDTH=1680 | |
DOCK_HEIGHT=1050 | |
DOCK_LARGE_WIDTH=1280 | |
DOCK_LARGE_HEIGHT=800 | |
LAPTOP_WIDTH=1440 |
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 python3 | |
from sys import argv | |
from collections import deque, defaultdict | |
DICTFILE = "/usr/share/dict/words" | |
def get_words(length): | |
words = [] | |
with open(DICTFILE, 'r') as dictfile: |
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
wan_interface=ens32 | |
lan_interface=ens33 | |
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
""" | |
matrix.py | |
(c) 2007,2016 Thomas McGrew | |
""" | |
VERSION = "0.3-pre" | |
MATRIX_VALID_TYPES = (int, float, complex) | |
MATRIX_VALID_TYPENAMES = ('int', 'float', 'complex') | |
MATRIX_VALID_INTS = (int,) |
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/python | |
# This python script will generate game genie codes for NES | |
# Pass in the address and value, with an optional compare value | |
# in hexadecimal format and it will output a game genie code. | |
# This is quick and dirty and largely untested, so YMMV. | |
from sys import argv | |
if len(argv) < 3: |
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/sh | |
dir=$1 | |
if [ -z $dir ]; then | |
dir="." | |
fi; | |
# create a temporary file name | |
TMPFILE="/tmp/$(echo -n "$dir" | md5sum | awk '{print $1}' | tr -d '\n')_$(date +%Y.%m.%d.%H.%M)_dupes.txt" |
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 | |
userAgentList=( | |
"Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.86 Safari/533.4" | |
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3" | |
"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" | |
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16" | |
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;" | |
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)" | |
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.17) Gecko/20061201 Firefox/2.0.0.17 (Ubuntu-feisty)" |
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 python3 | |
from json import loads | |
from sys import argv, exit | |
from urllib.request import Request, urlopen | |
if len(argv) < 2: | |
print("Usage: %s <emote_name>" % argv[0]) | |
exit(-1) |
NewerOlder