Skip to content

Instantly share code, notes, and snippets.

View npodonnell's full-sized avatar
🎯
Focusing

npodonnell npodonnell

🎯
Focusing
View GitHub Profile
@npodonnell
npodonnell / bitcoin_cli_commands.md
Last active January 4, 2021 20:59
Bitcoin CLI Commands

Bitcoin CLI Commands

N. P. O'Donnell, 2018-2020

Help & Information

Get help:

bitcoin-cli help

monero-wallet-cli commands

First off, to start the CLI, type:

$ monero-wallet-cli

If there's no wallet file in the current directory it will be created for you on startup, otherwise you'll need to choose a wallet name and one will be created for you.

Important: Monero wallets consist of two files, a wallet file and a keys file. For example if your wallet is called my-wallet, the files will be my-wallet (wallet data file) and my-wallet.keys (key file). Both of these files are needed. Once in the wallet REPL, the following commands are available:

@npodonnell
npodonnell / syncfiles.sh
Created December 5, 2018 00:50
Very simple file backup script using rsync
#!/usr/bin/bash
INTERVAL=10
SRC_DIRS=( Documents )
DEST_HOST=192.168.0.1
DEST_USER=user
DEST_DIR="~/backup" # Quotes are important!
if [ -e ~/.syncfiles.lock ]; then
echo "lockfile detected"
Monitor outgoing DNS traffic:
```
tcpdump -vvAs0 port 53
```
@npodonnell
npodonnell / GradleCheatSheet.md
Last active April 19, 2020 02:19
Gradle Cheatsheet

Gradle Cheatsheet

Initalize Gradle in Root Dir (similar to git init):

gradle init

this will create some files:

  • build.gradle -- Gradle build script
  • settings.gradle -- Gradle settings script
@npodonnell
npodonnell / GnuOctaveCheatSheet.md
Last active September 10, 2021 18:12
GNU Octave Cheatsheet

GNU Octave Cheatsheet

Math

Simple Math

>> 1+2
ans =  3
>> 3-1
ans =  2
>> 4*5
@npodonnell
npodonnell / make-repo.sh
Last active December 29, 2021 14:03
Quickly Make Git Repos
#!/usr/bin/env sh
# make-repo
# Creates a bare, named git repo on the server side
# N. P. O'Donnell, 2020 - 2021
REPO_BASE=/git
REPO_NAME=$1
REPO_DIR=$REPO_BASE/$REPO_NAME.git
HOSTNAME=$(hostname)
@npodonnell
npodonnell / docker_cheatsheet.md
Last active September 13, 2021 21:12
Docker Cheatsheet

Docker Cheatsheet

N. P. O'Donnell, 2020

Files & Directories

  • Containers are stored in /var/lib/docker/containers
  • Easiest to use su first if snooping around /var/lib/docker
  • Each container has a config.v2.json config file
@npodonnell
npodonnell / docker_ubuntu_setup.md
Last active February 9, 2021 00:11
Docker Ubuntu Install

Docker Ubuntu Setup

N. P. O'Donnell, 2020

Preparing a Ubuntu host for docker. Ensures an nginx image can run on port 80.

Install docker:

sudo apt-get update
sudo apt-get install docker.io