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:
| 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() |
| ;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 |
| 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() |
| # 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. |
I hereby claim:
To claim this, I am signing this object: