Skip to content

Instantly share code, notes, and snippets.

@davegorst
davegorst / Unshield list
Created September 16, 2014 05:08
CNCTFD .cab file contents
Cabinet: ./data1.cab
3004 [DirectX (9.0c)]NS_NSR_NPL_1_0009___2\StringTable-0009-English.ips
548963 [DirectX (9.0c)]NS_NSR_NPL_1_0009___3\_IsRes.dll
385024 <Support>English Files\_IsRes.dll
153720 Zero Hour\00000000.016
308276 Zero Hour\00000000.256
58326522 Zero Hour\AudioEnglishZH.big
23965542 Zero Hour\AudioZH.big
358963 Zero Hour\BINKW32.DLL
41472 Zero Hour\DrvMgt.dll
@davegorst
davegorst / findme.py
Created February 8, 2017 00:30
Some code to retrieve position from IP address
#!/usr/bin/python3
# Attempt to determine your position (including latitude and longitude) using your current IP address.
# Unless specified your latitude and longitude will be written to ~/.sunrise/location.ini
# Requires a recent version of Python (preferably 3+).
import sys
import urllib.request
import json
from html.parser import HTMLParser
if sys.version_info < (3,5):
@davegorst
davegorst / plasma_hat.py
Created June 4, 2017 15:12
Show plasma animation on Raspberry Pi Sense HAT LED
#!/usr/bin/python
import evdev
from sense_hat import SenseHat
from math import *
from time import sleep
import colorsys
import numpy
from datetime import datetime, timedelta