Skip to content

Instantly share code, notes, and snippets.

View bugproof's full-sized avatar
🤕
burnt out, working on personal stuff

bugproof

🤕
burnt out, working on personal stuff
View GitHub Profile
@Doliman100
Doliman100 / lua54_all_opcodes.lua
Created July 17, 2025 16:23
Lua 5.4 file producing all opcodes to generate mapping file
--https://gist.github.com/DevAX1T/8348f83469b5519ef9e481b194fe698d
--https://github.com/viruscamp/luadec/blob/master/bin/allopcodes-5.3.lua
local a = {...} -- NEWTABLE, EXTRAARG, VARARG, SETLIST
a = 0 -- LOADI
a = 0.0 -- LOADF
a = "" -- LOADK
a = false -- LOADFALSE
a = a == 0 -- LFALSESKIP, LOADTRUE
a = nil -- LOADNIL
@TheGreatSageEqualToHeaven
TheGreatSageEqualToHeaven / Lua51AllOpcodeCases.lua
Last active November 24, 2025 04:56
Lua 5.1 Opcode Case Test File
-- load
local math = math -- GETGLOBAL
local newproxy = newproxy -- GETGLOBAL
local ipairs = ipairs -- GETGLOBAL
local floor = math.floor -- GETTABLE KST(C)
local pi = math.pi -- GETTABLE KST(C)
local _nil = nil -- LOADNIL B -> C (1)
local _true = true -- LOADBOOL B(1)
local _false = false -- LOADBOOL B(0)
@jackullrich
jackullrich / mainc.c
Last active May 23, 2025 21:29
Single Step Encryption/Decryption
#include <Windows.h>
LONG SingleStepEncryptDecrypt(EXCEPTION_POINTERS* ExceptionInfo);
typedef VOID(__stdcall* Shellcode)();
LPBYTE ShellcodeBuffer;
ULONG_PTR PreviousOffset;
ULONG_PTR CurrentOffset;
ULONGLONG InstructionCount;
DWORD dwOld;
@ilyar
ilyar / clear_state_of_contract_on_near_protocol.md
Last active May 28, 2025 08:46
How do clear the state of a contract on Near protocol?

How do clear the state of a contract on Near protocol?

Prepare

source neardev/dev-account.env
export CONTRACT_NAME=$CONTRACT_NAME

View state

@waruqi
waruqi / usbproxy
Last active April 3, 2024 16:51
Set usb charles proxy for android
#!/bin/bash
if [ $1 == "1" ]; then
echo "start proxy on 127.0.0.1:8888"
adb reverse tcp:8888 tcp:8888
adb shell settings put global http_proxy 127.0.0.1:8888
adb shell settings put global https_proxy 127.0.0.1:8888
else
echo "stop proxy on 127.0.0.1:8888"
adb reverse --remove tcp:8888
@maxidorius
maxidorius / notes.md
Last active October 8, 2025 20:07
Notes on privacy and data collection of Matrix.org

Notes on privacy and data collection of Matrix.org


This version of the document is no longer canonical. You can find the canonical version hosted at Gitlab and Github.

PART 2 IS OUT, INCLUDING THE DISCLOSURE OF A GLOBAL FEDERATION DATA LEAK, AND THE ANATOMY OF A GDPR DATA REQUEST HANDLED BY MATRIX.ORG. SEE THE REPOS ABOVE.

@adrianyy
adrianyy / drvscan.cpp
Created May 2, 2019 16:37
vulnerable driver scanner
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <filesystem>
#include <Windows.h>
#include <winternl.h>
static_assert( sizeof( void* ) == 8 );
@victornpb
victornpb / deleteDiscordMessages.js
Last active November 22, 2025 03:12
Delete all your messages from DM or Channel in Discord
/*
This file is now hosted here:
https://github.com/victornpb/undiscord
*/
@arlomba
arlomba / tailwind.js
Created January 30, 2019 23:07
Tailwind CSS config using Material Design colors
/*
Tailwind - The Utility-First CSS Framework
A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink),
David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger).
Welcome to the Tailwind config file. This is where you can customize
Tailwind specifically for your project. Don't be intimidated by the
length of this file. It's really just a big JavaScript object and
@enerqi
enerqi / fsharp-fable-tips.md
Last active January 27, 2025 07:23
Fable F# Notes

Basic Tooling Setup

Fable is an F# language to javascript compiler powered by Babel.

F# is a language that runs on a Microsoft CLR. Using the .NET Core CLR implementation it works on Windows, Mac or Linux.

F# Linux

  • .NET Core SDK - download the latest 2.1 SDK
  • Mono - mono-complete package
  • F# compiler - fsharp package from the mono repository