Skip to content

Instantly share code, notes, and snippets.

Jonas Pauthier Nargonath

Block or report user

Report or block Nargonath

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Nargonath /
Last active Aug 8, 2019
Gathering of Git knowledge


  • git config --global alias.fwl "push --force-with-lease"
  • git config --global alias.rh "reset HEAD"
  • git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"

Delete old branches

  • git remote prune origin
  • git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d
Nargonath /
Last active Jul 23, 2017
Cook log of my sourdough bread testing


Alex French guy cooking

Water test

To pass the water test you have to take 2 tablespoons of your sourdough starter and feed it 100g of bread flour and 100g of water. Make it rest in a warm and dark place for about 4h and it should be able to pass the test.

First try


Nargonath / keymap_ngt.c
Created Jun 8, 2017
TMK Firware keyboard layout
View keymap_ngt.c
#include "keymap_common.h"
* SpaceFN
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Keymap 0: Default Layer => HHKB ISO AZERTY
* ,-----------------------------------------------------------.
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| )| =|Backsp |
Nargonath /
Last active Apr 1, 2018
Used to regroup knowledge about CSS language to use as a fallback when having memory loss CSS-wise.

Calculate selectors priority/specificity

The priority of a selector can be expressed as a list of 4 digits: 0,0,0,0.

Starting from the right, the first digit is the number of tag elements in the selector. The second is the number of class elements. The third is the number of ID elements. The last one if there is inline style property. As an example:

#myId.myClass {} // 0,1,1,0
h1.myClass {} // 0,0,1,1
You can’t perform that action at this time.