Skip to content

Instantly share code, notes, and snippets.

View dankelly's full-sized avatar

Dan Kelly dankelly

View GitHub Profile
(original: https://vertx.io/docs/guide-for-java-devs/)
git clone https://github.com/vert-x3/vertx-maven-starter.git vertx-wiki
cd vertx-wiki
rm -rf .git
git init
The project offers a sample verticle as well as a unit test.
You can safely delete all .java files beneath src/ to hack on the wiki,
@dankelly
dankelly / Matrix.txt
Last active September 21, 2018 17:31
Enter manually after docker run -it --rm --name deb debian:stable-slim
apt update && apt install -y cmatrix
1
27
20
Ctrl-p && Ctrl-q
docker commit -a "Mr. Anderson" -c "CMD cmatrix -ab" -m "I know kung fu" deb matrix
docker attach deb
Ctrl-d
@dankelly
dankelly / aliases
Created August 21, 2018 19:40
Aliases I define all the time
alias ll='ls -l'
alias cll='clear; ls -l'
alias psa='ps aux'
@dankelly
dankelly / drmi
Last active August 27, 2018 17:13
Shell script: Delete all Docker images
#!/bin/sh
docker images -a | grep -v REPOSITORY | tr -s ' ' | cut -d ' ' -f3 | xargs docker rmi

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream