Skip to content

Instantly share code, notes, and snippets.

View jediminer543's full-sized avatar

jediminer543

View GitHub Profile
@jediminer543
jediminer543 / ASMUtil.java
Created August 24, 2022 22:32
A utility class for asm stuff; part of a larger project not on git yet
package org.jmt.alan.util;
import java.util.HashMap;
import java.util.Map;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.FieldInsnNode;
import org.objectweb.asm.tree.InsnList;
@jediminer543
jediminer543 / turtlegcode.py
Created July 29, 2019 19:09
python turtle gcode viewer
import turtle
turtle.penup()
gcode = open("gcode.test", "r")
for line in gcode:
command = { i[0] : int(i[1:]) for i in line.split() }
if "M" in command:
if command["M"] == 5:
@jediminer543
jediminer543 / CC1101.h
Created January 5, 2019 11:31
Arduino (ESP32) EPCC1G2 Implementation
#ifndef _H_JMTBITWISE
#define _H_JMTBITWISE
#define CC1101_REGMODE_SINGLEWRITE 0x00
#define CC1101_REGMODE_BURSTWRITE 0x40
#define CC1101_REGMODE_SINGLEREAD 0x80
#define CC1101_REGMODE_BURSTEREAD 0xC0
#define CC1101_REG_IOCFG2 0x00
#define CC1101_REG_IOCFG1 0x01
@jediminer543
jediminer543 / EPCGen2Test.cpp
Last active January 4, 2019 20:31
C implementation of EPC gen2
// ConsoleApplication2.cpp : Defines the entry point for the console application.
//
//#include "stdafx.h"
#include <stdio.h>
#include <stdint.h>
#include <cstdlib>
#include <cstring>
#include <iostream>
@jediminer543
jediminer543 / Bearing.scad
Last active August 4, 2017 17:38
A bearing generator for OpenSCAD
$fn = 200;
tolerance = 0.1;
//Settings for 608 bearing
bearing_width = 7;
bearing_width_tb = 0.25;
bearing_diam_outer_ext = 22;
@jediminer543
jediminer543 / bot.py
Last active January 1, 2016 21:56 — forked from filipnyquist/guess_for_app.py
Save all files (app list credit to xPaw). Run the solver with: `python guess_for_password.py xpaws_app_list.txt PASSWORD_TO_TRY` or `python guess_for_app.py APP_ID list_of_passwords_in_a_file.txt`
from twisted.internet import reactor, defer, threads
#from twisted.logger import Logger, textFileLogObserver, globalLogPublisher
import time, sys, requests, random, json, logging
remote = 'warg.ngrok.io'
list_file = "xpaws_app_list.txt"
## Not using weird twisted logger
#log = Logger()
@jediminer543
jediminer543 / Zoom.js
Last active October 13, 2017 17:07
A file to stop sites from searching for Flash (10 points to people who get the reference)
// ==UserScript==
// @name Zoom
// @namespace Flash
// @include *
// @version 1
// @grant none
// @run-at document-start
// ==/UserScript==
/*
Load Shared Dependencies: timer started shumway.gfx.js:17
19:31:25.358 Load Shared Dependencies: 3.91ms shumway.gfx.js:190
19:31:25.358 Load GFX Dependencies: timer started shumway.gfx.js:190
19:31:25.364 Load GFX Dependencies: 6.02ms shumway.gfx.js:459
19:31:25.619 Load Player Dependencies: timer started shumway.player.js:17
19:31:25.620 Load Shared Dependencies: timer started shumway.player.js:17
19:31:25.623 Load Shared Dependencies: 3.3ms shumway.player.js:190
19:31:25.623 Load AVM2 Dependencies: timer started shumway.player.js:190
19:31:25.633 Load AVM2 Dependencies: 10.08ms shumway.player.js:705
19:31:25.634 Load SWF Parser: timer started shumway.player.js:705
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffb7c8ac8ee, pid=1980, tid=14452
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [lwjgl.dll+0xc8ee]
#
@jediminer543
jediminer543 / LMC.py
Created October 22, 2014 20:28 — forked from shutebt01/LMC.py
Python LMC Emulator
'''
Created on 22 Oct 2014
@author: shutebt01
'''
import tkinter
from tkinter.constants import *
tk = tkinter.Tk();