Skip to content

Instantly share code, notes, and snippets.

View npodonnell's full-sized avatar
🎯
Focusing

npodonnell npodonnell

🎯
Focusing
View GitHub Profile
@npodonnell
npodonnell / docker_api_cheatsheet.md
Last active December 29, 2021 13:56
Docker API Cheatsheet

Docker Python API Cheatsheet

N. P. O'Donnell, 2021

Installing and Importing

Installing:

pip install docker
@npodonnell
npodonnell / linux_networking.md
Last active October 29, 2021 13:10
Linux Networking

Linux Networking

N. P. O'Donnell, 2021

Network Interfaces

Bring eth0 interface down:

WARNING: If you do this remotely (like through an SSH connection), it will disconnect you...

@npodonnell
npodonnell / ubuntu_2104_bitcoin_core_setup.md
Last active October 8, 2021 11:19
DigitalOcean Ubuntu 21.04 Bitcoin Core Setup

Bitcoin Core Setup on Ubuntu 21.04

N. P. O'Donnell, 2021

Update / Install:

# As root
apt update
apt install -y git
@npodonnell
npodonnell / trio_cheatcheet.md
Last active June 3, 2021 17:44
Trio Cheatsheet

Trio Cheatsheet

N. P. O'Donnell, 2021

Simple Trio Program

import trio
@npodonnell
npodonnell / random_commands.md
Last active March 14, 2022 07:36
Random Commands

Random Commands

And Stuff ... mostly for Ubuntu/Debian

N. P. O'Donnell, 2021

Disable tap-to-click

synclient MaxTapTime=0
@npodonnell
npodonnell / update-compose.sh
Last active February 9, 2021 23:44
Update docker-compose to latest version.
#!/usr/bin/env bash
# Update docker-compose to latest version or a specific version.
# N. P. O'Donnell, 2021
if [[ -z $1 ]]; then
compose_version=$(curl https://api.github.com/repos/docker/compose/releases/latest | jq .name -r)
else
compose_version=$1
fi
output=~/bin/docker-compose
@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 / sync-gists.sh
Last active February 3, 2021 23:27
Sync Gists
#!/usr/bin/env bash
#
# sync-gists.sh
#
# Allows github gists to be edited locally or on gist.github.com and syncs changes between them.
# Currently gist SHA-1 hashes must be manually added to a file called gist_ids. An SSH key should
# be configured on github.com for ease of use.
#
# Format of $GIST_FILE file is one SHA-1 hash per line.
#
@npodonnell
npodonnell / nextjs_crash_course.md
Last active February 14, 2022 14:12
Next.js Crash Course
@npodonnell
npodonnell / tmux_notes.md
Last active March 15, 2021 09:36
Tmux Notes

Tmux Notes

N. P. O'Donnell, 2021

Installation and Setup

Installing (Ubuntu)

sudo apt install tmux