Skip to content

Instantly share code, notes, and snippets.

@satsie
satsie / maven-notes
Last active November 19, 2018 20:32
Notes on Maven
Create project:
mvn -B archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DgroupId=my.group.id \
-DartifactId=my-sample-project
mvn dependency:tree -Dverbose
@satsie
satsie / lnd-rpi-notes
Last active December 29, 2018 18:59
Notes on things I've had to do to get the Lightning Network Daemon running on a Raspberry Pi
Out of Memory errors:
1. Run `free -h` to get a snapshot of memory usage
Example:
free -h
total used free shared buff/cache available
Mem: 927M 839M 30M 2.8M 57M 36M
@satsie
satsie / git-notes.txt
Created November 8, 2018 15:22
Notes on Git
Creating brand new repositories with a branch named "develop":
1. git init
2. copy the .gitignore file from another directory
3. git add .
4. git commit
5. git branch develop
6. git checkout develop
7. git remote add origin … (command comes from bitbucket/github)
8. git push -u origin develop
Extract files from a jar:
jar -xf myApp.jar OR an unzip too like Winzip or Winrar
Start the dashboard
kubectl proxy (plus optional namespace and context)
Delete everything with a particular label (includes pods, services, replica sets, stateful sets, etc.):
kubectl delete all -l LABEL_KEY=LABEL_VALUE
Example: kubectl delete all -l app=my-app
cut everything after the cursor: CTRL+K
cut everything before the cursor: CTRL+U
How to change versions with `n`:
Check your current Node version: node --version
Install n: sudo npm install -g n
List the available versions of Node 12: n ls-remote 12
Download the latest: sudo n 12.22.1
@satsie
satsie / gulpfile.js
Created August 22, 2022 20:29
Gulp: reload browserify with browser-sync
const gulp = require('gulp');
const browserify = require('browserify');
const source = require('vinyl-source-stream');
var browserSync = require('browser-sync').create();
// Browserify basically allows the code to use npm modules
gulp.task('browserify', function() {
return browserify('js/scripts.js')
.bundle()
//Pass desired output filename to vinyl-source-stream
@satsie
satsie / bitcoin-core-pr-25900-notes.txt
Last active September 28, 2022 02:17
PR 25900 Notes
========================================================================
ESTABLISH A BASELINE AND TEST THE MASTER BRANCH AS-IS
========================================================================
1. Do a fresh clone of the bitcoin repo and make sure you are on the master branch
2. Set up a watcher for file ownership/permission changes:
auditctl -w <path to your bitcoin directory>/bitcoin/ -pwarx -k ci