Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

npodonnell npodonnell

🎯
Focusing
View GitHub Profile
View monero-wallet-cli-commands.md

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 Dec 5, 2018
Very simple file backup script using rsync
View syncfiles.sh
#!/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"
View TCPDump Examples
Monitor outgoing DNS traffic:
```
tcpdump -vvAs0 port 53
```
View bitcoin-core-codebase-notes.md
View GradleCheatSheet.md

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
View docker_compose_cheatsheet.md

Docker Compose Cheatsheet

N. P. O'Donnell, 2020

Facts about Docker Compose

  • Docker Compose is not a part of Docker
  • Consists of 2 parts: CLI and .yaml files
  • Deals in services (a service is comprised of several containers)
  • Default compose file is docker-compose.yml but any filename may be used
  • First line of compose file is version, but compose file version does not correspond to docker compose version.
@npodonnell
npodonnell / openssl_X509_cheatsheet.md
Last active Jul 31, 2020
OpenSSL X.509 Cheatsheet
View openssl_X509_cheatsheet.md

OpenSSL X.509 Cheatsheet

N. P. O'Donnell, 2020

Creating Keys

Create 2048-bit RSA key:

openssl genrsa -out example.com.key 2048
@npodonnell
npodonnell / docker_networking_cheatsheet.md
Last active Aug 5, 2020
Docker Networking Cheatsheet
View docker_networking_cheatsheet.md

Docker Networking Cheatsheet

N. P. O'Donnell, 2020

List networks:

docker network ls

Create a network called beatles:

View npm_cheatsheet.md

NPM Cheatsheet

N. P. O'Donnell, 2020

Website

Security Best Practices

View python_cheatsheet.md

Python Cheatsheet

N. P. O'Donnell, 2020

Virtual Environments

Create venv:

virtualenv -p python venv