An alias that will generate a git commit message staged changes as shown in git-status. Put this alias (section below) in your .gitconfig
.
The message generated will be in the format of:
$ git status --porcelain
A file1.py
A file2.py
A file3.py
. |
#~/.config/ncmpcpp/bindings | |
# How to configure NCMPCPP to get Vim-like keybindings | |
def_key "j" | |
scroll_down | |
def_key "k" | |
scroll_up | |
def_key "h" | |
previous_column |
# Maintainer: Erik Westrup | |
# Reference on git checkout: https://man.archlinux.org/man/PKGBUILD.5#USING_VCS_SOURCES | |
pkgname=zscreen | |
pkgver=20160510 | |
pkgrel=1 | |
pkgdesc="Scrot and imgur/s3 upload zenity gui" | |
arch=('any') | |
url="https://github.com/ChrisZeta/Scrot-and-imgur-zenity-GUI" | |
_git_commit='e9d15e606a0d358f002d0ec45324069c5cff3c68' |
# To be compatiable with both GNU sed and the old BSD sed that macOS uses, need to set and inplace backup extension and then remove the file. | |
# $(sed -i -e '...' file) works with GNU sed and modern BSD. However on macOS a backup file "file-e" will be created | |
# Reference: https://unix.stackexchange.com/a/131940/19909 | |
sed -i.bak -e 'expr...' file && rm file.bak |
MOVED TO ⮕ https://github.com/erikw/restic-automatic-backup-scheduler |
#!/usr/bin/env bash | |
# A log of how I configured FreeBSD spring 2018 on my Intel NUC Dawson Canyon NUC7i3DNH2E (NUC7i3DNH). | |
# Modeline { | |
# vi: foldmarker={,} foldmethod=marker foldlevel=0 tabstop=4 | |
# } | |
# Links { | |
# FreeBSD vs Linux: | |
# http://www.over-yonder.net/~fullermd/rants/bsd4linux/01 |
#!/usr/bin/env bash | |
# Runs a command wrapped in btrfs snapper pre-post snapshots. | |
# Usage: $ snp <commands> | |
# e.g.: $ snp pacman -Syyu | |
# Requirements: snapper (https://wiki.archlinux.org/title/snapper) | |
# The latest version of this script is hosted at https://gist.github.com/erikw/5229436 | |
log_path="/var/local/log/snp" | |
date=$(date "+%Y-%m-%d-%H%M%S") | |
log_file="${log_path}/snp_${date}.log" |
#!/usr/bin/env bash | |
# Runs a command wrapped in ZFS pre-post snapshots. The whole data pool is recursively snapshotted. | |
# Analogous to my snp script for BTRFS: https://gist.github.com/erikw/5229436 | |
# Usage: $ znp <commands> | |
# e.g.: $ znp pgk upgrade | |
# e.g.: $ znp portmaster -aG | |
# e.g.: $ znp freebsd-upgrade install | |
zfs_pool=zroot |