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 / .gitignore
Last active September 7, 2023 23:14
clone gitHub organization
gnostr-org
@RandyMcMillan
RandyMcMillan / install-nvm.sh
Last active August 27, 2023 14:25
install nvm and .gitignore
#!/usr/bin/env bash
(echo `pwd`) & clear && \
NVM_VERSION=v16.20.2
touch .nvmrc
echo $NVM_VERSION > .nvmrc
if ! grep -q "$NVM_VERSION" .nvmrc; then echo "$NVM_VERSION" > .nvmrc; fi;\
touch .gitignore
if ! grep -q ".nvmrc" .gitignore; then echo ".nvmrc" >> .gitignore; fi;\
if ! grep -q ".gitignore" .gitignore; then echo ".gitignore" >> .gitignore; fi;\
@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 / git@gist.github.com:randymcmillan.md
Created February 3, 2023 21:35
git@gist.github.com:randymcmillan