Skip to content

Instantly share code, notes, and snippets.

View RandyMcMillan's full-sized avatar
🛰️
Those who know - do not speak of it.

@RandyMcMillan RandyMcMillan

🛰️
Those who know - do not speak of it.
View GitHub Profile
@RandyMcMillan
RandyMcMillan / main.rs
Created January 30, 2024 03:28 — forked from rot13maxi/main.rs
adaptor fun
use rand_chacha::ChaCha20Rng;
use schnorr_fun::fun::{KeyPair, Scalar};
use schnorr_fun::{Message, nonce, Schnorr};
use schnorr_fun::adaptor::Adaptor;
use schnorr_fun::fun::marker::Public;
use schnorr_fun::musig::MuSig;
use sha2::Sha256;
fn main() {
// Little proof of concept. Doesn't actually do real transactions, but you get the idea.
@RandyMcMillan
RandyMcMillan / makefile
Created December 4, 2023 19:09 — forked from tomdaley92/makefile
Generic makefile for C/C++ programs
# Thomas Daley
# September 13, 2021
# A generic build template for C/C++ programs
# executable name
EXE = app
# C compiler
CC = gcc
@RandyMcMillan
RandyMcMillan / key_converter.py
Last active December 1, 2023 00:11 — forked from jleo84/key_converter.py
Convert any Bitcoin key prefix to another (e.g.: xpub to ypub, zpriv to Zpriv)
#!/usr/bin/python3
import pip
while True:
try:
#import your modules here. !
from distutils.spawn import find_executable
from shutil import which
@RandyMcMillan
RandyMcMillan / screen-sharing-osx.sh
Created July 13, 2023 12:44 — forked from pcolunga/screen-sharing-osx.sh
Enable screen-sharing on Mac OS X via SSH
#Log and type
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all
# To enable screen sharing
cd /Library/Preferences
echo -n enabled > com.apple.ScreenSharing.launchd
# To disable screen sharing
cd /Library/Preferences
rm com.apple.ScreenSharing.launchd
@RandyMcMillan
RandyMcMillan / .gitignore
Last active May 19, 2023 20:36 — forked from fxdpntthm/execl-example.c
Small sample program explaining how to use execl command
pyinbash.sh
py3-script.py
pyscript.py
scripts
scripts/*
execl-example
execl-example.dSYM/
@RandyMcMillan
RandyMcMillan / execv-example.c
Created May 18, 2023 15:24 — forked from fxdpntthm/execv-example.c
small sample program to demonstrate execv function usage
#include<stdio.h>
#include<errno.h>
#include<stdlib.h>
#include<strings.h>
#include<unistd.h>
#define BASH_EXEC "/usr/bin/bash"
#define LS_EXEC "/usr/bin/ls"
#define BSIZE 50
@RandyMcMillan
RandyMcMillan / .gitignore
Last active February 28, 2023 01:07 — forked from JamesCooteUK/html-smuggling-example.html
HTML Smuggling Example
.DS_Store
evil.exe
test.txt
@RandyMcMillan
RandyMcMillan / app.js
Created February 3, 2023 21:27 — forked from MattSandy/app.js
Tweet Scraper in Node.JS
var Twitter = require('node-tweet-stream')
, t = new Twitter({
consumer_key: '',
consumer_secret: '',
token: '',
token_secret: ''
});
var watch = [
"SB52",
"SBLII",
@RandyMcMillan
RandyMcMillan / cargo.toml
Last active December 12, 2022 21:20 — forked from futurepaul/example.rs
example usage of miniscript
[dependencies]
miniscript = { git="https://github.com/apoelstra/rust-miniscript", features=["compiler"] }
bitcoin = "0.18"
secp256k1 = "0.12"
@RandyMcMillan
RandyMcMillan / nodecheck.sh
Created November 8, 2022 16:23 — forked from jamesmcintyre/nodecheck.sh
bash script to check node/npm version and installed deps against package.json requirements
# more extensive check intended for scenerios such as pulling an existing repo you're unfamiliar with, pulling down changes
# and wanting to ensure your current node_modules/ is up-to-date with any package.json changes, etc.
# you will automatically be prompted to install the two required global npm modules
nodecheck() {
printf "\n\n"
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' .
printf "ENVIRONMENT:\n"