Translate EVM bytecode into opcodes using pure Regex :)
Demo: https://twitter.com/0x796/status/1608039943582142464
Try here: https://regex101.com/
Use PCRE2 (Perl compatible) Regex flavor.
Search:
set -e | |
yarn init -yarn | |
yarn add typescript -D | |
yarn tsc --init | |
yarn add ts-node -D | |
yarn add prettier -D | |
yarn add @types/node | |
# Init .prettierrc |
Translate EVM bytecode into opcodes using pure Regex :)
Demo: https://twitter.com/0x796/status/1608039943582142464
Try here: https://regex101.com/
Use PCRE2 (Perl compatible) Regex flavor.
Search:
(?<!^[\s]*import.*)(?<!^.*\/\/.*)(?<!\/\*(?:(?!\*\/)[\s\S\r])*?)(?<![\.\+\-\/\*])[\-\+\*\/](?![\+\-\/\.\*]) |
@echo off | |
ECHO Usage: manyFolders.cmd yourfoldername 500 3 | |
ECHO (where 500 is number of folders to create and 3 is a number of digits in folder number) | |
ECHO. | |
set count=%2 | |
setlocal EnableDelayedExpansion | |
for /L %%i in (1, 1, %count%) do ( | |
set "formattedValue=000000%%i" | |
md %1!formattedValue:~-%3! |
import sys | |
import struct | |
import os | |
rootdir = "D:/MXF_Day1_Shots" | |
# MXF Keys | |
MXF_KEYS = { | |
'\x06\x0E\x2B\x34\x02\x43\x01\x01\x0D\x01\x03\x01\x04\x01\x02\x02' : 'FRAME' | |
} |