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:
#!/bin/bash | |
# At the beginning of the script, store the original directory | |
ORIGINAL_DIR=$(pwd) | |
# Check if at least repository URL is provided | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 <repository_url> [file_extension] [start_date] [end_date] [--csv]" | |
echo "Dates should be in YYYY-MM-DD format" | |
echo "--csv: Optional flag to generate detailed CSV output (may be slower)" |
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' | |
} |