Skip to content

Instantly share code, notes, and snippets.

@ezterry
ezterry / HarryPotterOwlGradeDice.scad
Created June 1, 2020 00:33
A sample OpenSCAD file to generate a Die or Dice with the first letter of the Harry Potter Owl grades.
// Simple dice model that shows the grades of the Owl Test from
// Harry Potter
// Simple OpenSCAD example
// 2020 - Terrence Ezrol
// CC-0 - No Rights Reserved
// https://creativecommons.org/share-your-work/public-domain/cc0/
// Font used on the Dice
FONT = "FreeMono:style=Bold";
@ezterry
ezterry / instructions.txt
Created December 31, 2018 05:43
EzWastelands Adventure Pack 1.14 pre-release
Wasteland Survival Basics
A simple near vanilla wasteland survival experiment
Requires:
MultiMC (Minecraft Launcher)
https://multimc.org/
Install Instructions:
@ezterry
ezterry / Starting inventory
Last active February 20, 2017 08:39
Sample config for the Minecraft mod jsonRecipeEdit, implements starting inventory in virtual command chains, see giveinitialinv chain to update for your modpack
[
"** Start with some basic gloal settings **",
{
"command": "virtual command chain",
"trigger": "ServerStart",
"name": "ServerLoad",
"chain": [
"jsonRecipeEdit set server_init"
]
},
@ezterry
ezterry / png.py
Last active December 31, 2015 15:39
Python3 sqi 2 png converter
#!/usr/bin/env python
# $URL$
# $Rev$
# png.py - PNG encoder/decoder in pure Python
#
# Copyright (C) 2006 Johann C. Rocholl <johann@browsershots.org>
# Portions Copyright (C) 2009 David Jones <drj@pobox.com>
# And probably portions Copyright (C) 2006 Nicko van Someren <nicko@nicko.org>
@ezterry
ezterry / KPatch.py
Created May 1, 2012 00:40
Hack acer 4.0 kernel to allow mounting of system
import gzip
import os
import sys
import StringIO
import struct
#This script will <EVIL> patch the pre-compiled zImage
#to bypass the /system remount block on the AcerA500
#ICS rom ... please run this script in linux or cygwin as
#the unix gzip is required
@ezterry
ezterry / decode_acer_zip.py
Created January 5, 2012 15:09
Python Script to decode ACER update zips (With auto 16bit key detection)
#!/usr/bin/python
#Acer update zip decoder
#Based on information in this post/thread:
#http://forum.xda-developers.com/showpost.php?p=14201285&postcount=161
#As well as "new key" information in
#http://forum.xda-developers.com/showpost.php?p=14505451&postcount=31
import sys
import os
import struct
@ezterry
ezterry / dexparse.py
Created September 24, 2011 17:38
A python library to provide some insight into the internals of the dex/odex files; just a start to allow checking of the checksums and sha signatures, may grow to have additional functions
#!/usr/bin/python
import struct
import zlib
import hashlib
class dexOptHeader:
def __init__(self,fp,dexFile):
"""Load the header data structure
sets attributes: