Skip to content

Instantly share code, notes, and snippets.

View nategraf's full-sized avatar

Victor Snyder-Graf nategraf

View GitHub Profile
@str4d
str4d / DemangleRust.py
Last active March 19, 2025 02:27
Ghidra script for demangling Rust symbols
# Attempts to demangle all mangled symbols in the current program using the Rust
# mangling schemes, and replace the default symbol and function signature
# (if applicable) with the demangled symbol.
#
# License: MIT OR Apache-2.0
#@author Jack Grigg <[email protected]>
#@category Symbol
import string
#!/usr/bin/env node
import commander from 'commander';
import StatsdClient from 'statsd-client'
import { concurrentMap } from '@celo/utils/lib/async'
import { Validator } from '@celo/contractkit/lib/wrappers/Validators';
import { bitIsSet, parseBlockExtraData } from '@celo/utils/lib/istanbul'
import { cleanupName } from './stats-utils';
import BigNumber from 'bignumber.js';
@nategraf
nategraf / install-docker.sh
Last active December 10, 2017 00:03
Install docker and docker-compose for Ubuntu
#!/bin/bash
# curl https://gist.githubusercontent.com/nategraf/1fe3bcfeca76042abb5eef9a9cfcc9c2/raw/f497a81610d50719353e1025922f76d4d0f6ed38/install-docker.sh | sudo bash
function confirm () {
while true; do
read -p "Does this look right?" yn
case $yn in
[Yy]* ) make install; break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;