Skip to content

Instantly share code, notes, and snippets.

@karlnr
karlnr / Count lines in Git repo
Created October 3, 2021 00:49 — forked from mandiwise/Count lines in Git repo
A command to calculate lines of code in all tracked files in a Git repo
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository
$ git ls-files | xargs wc -l
@karlnr
karlnr / duplicate_line_xcode.md
Last active May 13, 2021 06:02 — forked from emotality/duplicate_line_xcode.md
Xcode - Duplicate Line key binding

Xcode line duplicate

Bind keys to duplicate & delete lines in Xcode

TODO: automate with /usr/libexec/PlistBuddy

  • Edit:

/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist

@karlnr
karlnr / git-bug-rm.md
Created May 6, 2021 11:31
Manual removal of a git-bug

rm .git/git-bug/bug-cache
rm .git/refs/bugs/