Skip to content

Instantly share code, notes, and snippets.

View allanzi's full-sized avatar
🤑
I may be slow to respond.

Allan Santos allanzi

🤑
I may be slow to respond.
  • São Paulo - SP
View GitHub Profile
@allanzi
allanzi / gist:1a41f974ffb42cd23725e0b91839fd83
Created May 16, 2019 20:16 — forked from jtdp/gist:5443498
Revert file permission changes in local git repository.. Very useful when you change permissions due to working on a samba share. Lifted from: http://stackoverflow.com/questions/2517339/git-how-to-recover-the-file-permissions-git-thinks-the-file-should-be
git diff -p \
| grep -E '^(diff|old mode|new mode)' \
| sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \
| git apply
@allanzi
allanzi / readme.md
Last active May 2, 2019 14:16 — forked from benstr/readme.md
Gist Markdown Cheatsheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph