Skip to content

Instantly share code, notes, and snippets.

View DavidGoldman's full-sized avatar

David Goldman DavidGoldman

View GitHub Profile
@DavidGoldman
DavidGoldman / strip_miner.lua
Last active February 14, 2021 01:43
Minecraft Strip Miner (Minecraft 1.12 requires Plethora Peripherals, Minecraft 1.7.10 requires Open Peripherals)
--[[ Strip Miner by Davidee inspired by https://pastebin.com/6qmBBLpz ]]--
--[[ History at https://gist.github.com/DavidGoldman/f73492ec45a27358dcfcc3aea1b08964 ]]
--[[ Do what you will with the script. ]]--
--[[ This turtle script is smart enough to mine veins of a hardcoded set of ores. ]]--
--[[ Cheers! ]]--
local version = "1.0.6"
-- Logging
local ALL, DEBUG, INFO, WARN, ERROR, FATAL, OFF = 1, 2, 3, 4, 5, 6, 7
local LOG_PREFIXES = { "", "[Debug] ", "[Info] ", "[Warn] ", "[Error] ", "[Fatal] ", "" }
@DavidGoldman
DavidGoldman / deb_to_electra.sh
Created January 15, 2018 17:39
Copy files from a tweak's deb file to your iPhone running Electra
#!/bin/bash
usage () {
echo "usage: $0 <deb file>"
echo " copies dylibs, plists, and preferences bundles from the .deb file to"
echo " your iPhone for use with Electra"
echo ""
echo "usage: $0 (while in a theos project dir)"
echo " copies dylibs, plists, and preferences bundles from your last built"
echo " .deb file to your iPhone for use with Electra"
#!/bin/bash
MODEL="YOUR MODEL"
ECID="YOUR ECID"
TSSCHECKER=~/Desktop/TSS/tsschecker
NEW_DIR="$MODEL-$ECID"
mkdir $NEW_DIR
cd $NEW_DIR
APNONCES=(603be133ff0bdfa0f83f21e74191cf6770ea43bb 352dfad1713834f4f94c5ff3c3e5e99477347b95 42c88f5a7b75bc944c288a7215391dc9c73b6e9f 0dc448240696866b0cc1b2ac3eca4ce22af11cb3 9804d99e85bbafd4bb1135a1044773b4df9f1ba3)
for nonce in ${APNONCES[@]};
@DavidGoldman
DavidGoldman / LateLoading.xm
Created August 20, 2015 17:45
Hook late loaded classes without dlopen'ing anything
#import <objc/runtime.h>
#include <dlfcn.h>
#include <mach-o/dyld.h>
%group NormalHooks
// Regular hooks in here.
%end