Skip to content

Instantly share code, notes, and snippets.

Avatar
🛠️
Building better apps, one commit at a time

Ludovic Dine ludwigdn

🛠️
Building better apps, one commit at a time
View GitHub Profile
@ludwigdn
ludwigdn / git-worktrees.md
Last active Sep 15, 2021
Git worktrees cheatsheet
View git-worktrees.md

Git worktrees cheatsheet

Create new worktree from existing branch

git worktree add <WORKTREE-PATH> <BRANCH>

Create new branch and its worktree

View gist:155e925a7457789a2a8b724a7c6fd3bd

GPG Cheatsheet

Generate a key

gpg --full-generate-key

List keys

gpg —list-keys
View gist:3ffa1b15e8730e4bb14a4004de905781

Unview Pull Request files in bulk

Copy/paste in browser's console
boxes=document.getElementsByClassName("js-reviewed-checkbox"),counter=0;for(let e=0;e<boxes.length;e++){const t=boxes[e];"File viewed, click, value:true"==t.dataset.gaClick&&(t.click(),counter++)}alert("Unfolded "+counter);
Original poster: @Pyton
View gist:ee2e21519248030117dfd9b510039611

Command line MD5 checker

echo "MY_MD5_SUM_TO_CHECK my_file_to_compare.zip" | md5sum -c -