Skip to content

Instantly share code, notes, and snippets.

@j4ckofalltrades
j4ckofalltrades / .gitconfig
Last active October 16, 2025 10:43
git config options in the `git config --make-git-work-for-you` talk -- https://talks.jduabe.dev/git-config
# git config options in the `git config --make-git-work-for-you` talk
# https://talks.jduabe.dev/git-config
[alias]
br = branch
cm = commit
di = diff
dis = diff --staged
lol = log --oneline
rs = restore
@m-radzikowski
m-radzikowski / script-template.sh
Last active January 17, 2026 16:08
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@pksunkara
pksunkara / config
Last active January 17, 2026 16:38
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
# vi: ft=dosini
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[column]