Skip to content

Instantly share code, notes, and snippets.

View torgeros's full-sized avatar
🦊
'd be a shame if someone fired your fox

Torge Rosendahl torgeros

🦊
'd be a shame if someone fired your fox
View GitHub Profile
@torgeros
torgeros / git-author-stats.sh
Created September 5, 2024 09:57
This script pretty-prints statistics about the added and removed lines of each author in a git repo.
#! /bin/bash
git log --format='%aN' | sort -u | while read name; do
echo -en "$name\t"
git log --author="$name" --pretty=tformat: --numstat -- . ':!node_modules' ':!package-lock.json' |
awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "\tadded lines: %s, \tremoved lines: %s, \ttotal lines: %s\n", add, subs, loc }' -
done
@torgeros
torgeros / .gitconfig
Created November 17, 2023 17:03
My ~/.gitconfig
[init]
defaultBranch = main
[user]
name = Torge Rosendahl
#email = only provide when always the same, i.e. at work
[alias]
# list all tags in this repo including tag message
tags = tag -n
@torgeros
torgeros / iptsd.conf
Last active May 20, 2024 02:27
surface-linux IPTSD Config for Surface Pro 5
# modified from original file by @torgeros
# config file is located in /etc/iptsd.conf
[Config]
##
## The following values are device specific and will be loaded from /usr/share/iptsd
## Only set them if you need to provide custom values for new devices that are not yet supported
##
# InvertX = false
# InvertY = false