Skip to content

Instantly share code, notes, and snippets.

View npodonnell's full-sized avatar
🎯
Focusing

npodonnell npodonnell

🎯
Focusing
View GitHub Profile

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

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 July 31, 2020 17:10
OpenSSL X.509 Cheatsheet

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 August 5, 2020 14:44
Docker Networking Cheatsheet

Docker Networking Cheatsheet

N. P. O'Donnell, 2020

List networks:

docker network ls

Create a network called beatles:

@npodonnell
npodonnell / npm_cheatsheet.md
Last active August 26, 2020 18:55
NPM Cheatsheet

NPM Cheatsheet

N. P. O'Donnell, 2020

Website

Security Best Practices

Python Cheatsheet

N. P. O'Donnell, 2020

Virtual Environments

Create venv:

virtualenv -p python venv