Skip to content

Instantly share code, notes, and snippets.

@ReplayCoding
ReplayCoding / krisp.py
Created January 31, 2023 22:28
discord krisp patcher
import sys
import lief
replacement_code = [
0x48, 0xC7, 0xC0, 0x01, 0x00, 0x00, 0x00, # mov rax, 0x1
0xC3 # ret
]
with open(sys.argv[1], "rb") as input_file, open(sys.argv[2], "wb") as output_file:
input_bytes = list(input_file.read())
#Generates byte patterns & masks based on function code
#@author ReplayCoding
#@category User Scripts
#@keybinding
#@menupath
#@toolbar magnifier.png
from __future__ import print_function
listing = currentProgram.getListing()
@ReplayCoding
ReplayCoding / SMBDIS.ASM
Created December 17, 2018 19:45 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@ReplayCoding
ReplayCoding / pico8jstocart.py
Created October 20, 2018 14:28 — forked from eevee/pico8jstocart.py
Python script to convert exported JavaScript back into a PICO-8 cartridge
import os.path
import re
import sys
# LZ-ish decompression scheme borrowed from picolove:
# https://github.com/gamax92/picolove/blob/master/cart.lua
compression_map = b"\n 0123456789abcdefghijklmnopqrstuvwxyz!#%(){}[]<>+=/*:;.,~_"
def decompress(code):
lua = bytearray()
@ReplayCoding
ReplayCoding / nvm_fix.sh
Last active September 5, 2018 18:51 — forked from itsmepetrov/nvm_fix.sh
Fix NVM to use from root (or sudo)
# StackOverflow: http://stackoverflow.com/questions/21215059/cant-use-nvm-from-root-or-sudo
# Source: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-with-nvm-node-version-manager-on-a-vps
# The below command seems to fix the problem
n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local
# The above command is a bit complicated, but all it's doing is copying whatever version of node
# you have active via nvm into the /usr/local/ directory (where user installed global files should
# live on a linux VPS) and setting the permissions so that all users can access them.

Keybase proof

I hereby claim:

  • I am replaycoding on github.
  • I am replaycoding (https://keybase.io/replaycoding) on keybase.
  • I have a public key ASA91YOZSlfoViEXkZfb3omsXfRY0nsO3OFN_eGX-Q1aXQo

To claim this, I am signing this object: