Skip to content

Instantly share code, notes, and snippets.

View npodonnell's full-sized avatar
🎯
Focusing

npodonnell npodonnell

🎯
Focusing
View GitHub Profile
@npodonnell
npodonnell / bitcoind_ubuntu_setup.md
Last active April 23, 2024 18:56
Bitcoind Ubuntu Setup

Bitcoind Ubuntu Setup

N. P. O'Donnell, 2021

Getting Bitcoind

ARCH=x86_64
BITCOIN_VERSION=0.21.0
wget https://bitcoin.org/bin/bitcoin-core-$BITCOIN_VERSION/bitcoin-$BITCOIN_VERSION-$ARCH-linux-gnu.tar.gz
@npodonnell
npodonnell / special_characters.md
Last active January 17, 2024 07:35
Special Characters

Special Characters

N. P. O'Donnell, 2023

Typing These Characters

On Linux, Hold ctrl + shift + u at the same time, release all 3, then type the 4 hex characters of the character you'd like.

Codes

@npodonnell
npodonnell / mongodb_cheatsheet.md
Last active January 8, 2024 16:39
MongoDB Cheatsheet

MongoDB Cheatsheet

N. P. O'Donnell, 2021

Installing Community Edition (Ubuntu)

Check for latest version here

Add MongoDB repository to Apt and install:

@npodonnell
npodonnell / crypto_number_theory.py
Last active July 25, 2023 12:42
Crypto Number Theory
#!/usr/bin/env python3
#
# Crypto & Number Theory
# N. P. O'Donnell, 2020
def odd(a):
"""
Is a odd?
"""
@npodonnell
npodonnell / luks_encryption_cheatsheet.md
Last active March 13, 2023 16:26
LUKS Encryption Cheatsheet

LUKS Encryption Cheatsheet

N. P. O'Donnell, 2021

Before you do anything, ensure you have cryptsetup installed:

sudo apt-get install -y cryptsetup
@npodonnell
npodonnell / uniswap_v3_formulae.tex.md
Last active February 7, 2023 16:02
Uniswap v3 Formulae

Uniswap Formulae

Notes:

  • Lower-case x and y denote virtual or v1 reserves, upper-case X and Y denote v3 real reserves.
  • The v3 formulae have been adapted from those in the whitepaper to be in terms of price, not square-root-price.

v1/v2 Formulae

Constant Product Formula

@npodonnell
npodonnell / rust-crash-course.md
Last active January 19, 2023 11:06
Rust Crash Course

Rust Crash Course

N. P. O'Donnell, 2020 - 2023

Commands

rustup (Rust updater)

Show rustup version (not Rust version):

@npodonnell
npodonnell / virtualization_notes.md
Last active January 13, 2023 11:25
Virtualization Notes

Virtualization Notes

N. P. O'Donnell, 2021

Find out if your x86 CPU supports KVM Virtualization

egrep -c '(vmx|svm)' /proc/cpuinfo
@npodonnell
npodonnell / ssh_cheatsheet.md
Last active December 14, 2022 23:34
SSH Cheatsheet

SSH Cheatsheet

N. P. O'Donnell, 2020

Specify a Key

To have SSH use a specific key:

ssh -i <path/to/key> <remote host>