This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======================================================================== | |
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cut everything after the cursor: CTRL+K | |
cut everything before the cursor: CTRL+U |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Extract files from a jar: | |
jar -xf myApp.jar OR an unzip too like Winzip or Winrar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create project: | |
mvn -B archetype:generate \ | |
-DarchetypeGroupId=org.apache.maven.archetypes \ | |
-DgroupId=my.group.id \ | |
-DartifactId=my-sample-project | |
mvn dependency:tree -Dverbose |