Skip to content

Instantly share code, notes, and snippets.

View ludwigdn's full-sized avatar
💻
🇺🇦 Building better apps, one commit at a time

Ludovic D ludwigdn

💻
🇺🇦 Building better apps, one commit at a time
View GitHub Profile
@ludwigdn
ludwigdn / git-worktrees.md
Last active September 15, 2021 10:37
Git worktrees cheatsheet

Git worktrees cheatsheet

Create new worktree from existing branch

git worktree add <WORKTREE-PATH> <BRANCH>

Create new branch and its worktree

GPG Cheatsheet

Generate a key

gpg --full-generate-key

List keys

gpg —list-keys
@ludwigdn
ludwigdn / gist:3ffa1b15e8730e4bb14a4004de905781
Last active September 15, 2021 10:22
Unview PR files in bulk

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
@ludwigdn
ludwigdn / gist:ee2e21519248030117dfd9b510039611
Last active September 15, 2021 10:23
Command line MD5 checker

Command line MD5 checker

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