From fd0248d2f8f7c7fb7cda213e0c56d68329b3ad79 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 6 Jan 2020 18:26:40 +0100 Subject: Ignore everything in gitignore Instead of managing a file for all exceptions, I can just git add -f, which also ignores the gitignore file. Afterwards, files are tracked as usual. --- .gitignore | 105 +------------------------------------------------------------ 1 file changed, 1 insertion(+), 104 deletions(-) diff --git a/.gitignore b/.gitignore index 9bbc507..72e8ffc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,104 +1 @@ -# Ignore everything except the gitignore file itself -/* -!.gitignore - -# Allow directories in ~/.config -!/.config/ -/.config/* - -# Allow directories in ~/.local -!/.local/ -/.local/* - -# -# Shell customization -# - -!/.zshrc -!/.bashrc -!/.config/shell/ -/.config/shell/vendor - -# -# Custom shell utilities -# - -!/.local/bin -/.local/bin/* - -# template files -!/.local/templates - -# gittab -!/.local/bin/gittab -!/.local/etc -/.local/etc/* -!/.local/etc/gittab - -# misc -!/.local/bin/chomp -!/.local/bin/chwp -!/.local/bin/kubecontext -!/.local/bin/load -!/.local/bin/lpass -!/.local/bin/mkbak -!/.local/bin/mkpasswd -!/.local/bin/new -!/.local/bin/ta -!/.local/bin/uncolor -!/.local/bin/up - -# -# Application specific dotfiles -# - -# app-editors/vim -!/.vim/ -/.vim/bundle -/.vim/.netrwhist -/.vim/view - -# dev-vcs/git -!/.config/git - -# net-irc/weechat -!/.weechat/ -/.weechat/* -!/.weechat/weechat.conf -!/.weechat/plugins.conf - -# net-misc/openssh -!/.ssh/ -/.ssh/* -!/.ssh/config -!/.ssh/known_hosts -!/.ssh/authorized_keys - -# www-client/firefox -!/.mozilla/ -/.mozilla/* -!/.mozilla/firefox/ -/.mozilla/firefox/* -!/.mozilla/firefox/profiles.ini -!/.local/etc/firefox/ -/.local/etc/firefox/* -!/.local/etc/firefox/user.js -!/.local/etc/firefox/chrome/ - -# x11-misc/sxhkd -!/.config/sxhkd - -# x11-terms/termite https://anongit.gentoo.org/git/user/eroen.git -!/.config/termite - -# x11-wm/awesome -!/.config/awesome/ -/.config/awesome/gtd_next_items - -# https://gitlab.com/tyil/perl6-app-gtd -!/.config/gtd - -# -# Miscellaneous -# -!/.local/etc/uninames.txt +* -- cgit v1.1 From 76ce82ea2d44212c985ebe94b3ccdcb31da0f83f Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 6 Jan 2020 18:27:31 +0100 Subject: Add git-mkbare --- .local/bin/git-mkbare | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100755 .local/bin/git-mkbare diff --git a/.local/bin/git-mkbare b/.local/bin/git-mkbare new file mode 100755 index 0000000..bd9615c --- /dev/null +++ b/.local/bin/git-mkbare @@ -0,0 +1,64 @@ +#! /usr/bin/env sh + +main() +{ + # Handle opts + opts "$@" + shift "$OPTS" + unset OPTS + + # Show help + [ "$OPT_HELP_ONLY" ] && usage && exit 0 + + location=$(readlink -f "${1:-$PWD}") + + # Prompt for location + printf "%s: [%s] " "Path" "$location" + read -r input + [ -z "$input" ] || location=$(readlink -f "$input") + unset input + + # Prompt for description + printf "%s: " "Description" + read -r description + + # Create the bare git repository + mkdir -p "$location" + cd -- "$location" + git --bare init + + # Update the description, if given + printf "%s\n" "$description" > "$location/description" +} + +opts() +{ + OPTS=0 + + while getopts ":h" opt + do + case "$opt" in + h) OPT_HELP_ONLY=1 ;; + *) + printf "Invalid option passed: %s\n" "$OPTARG" >&2 + ;; + esac + done + + unset opt +} + +usage() +{ + cat < Date: Mon, 6 Jan 2020 18:27:49 +0100 Subject: wee_slack updated or something --- .weechat/weechat.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.weechat/weechat.conf b/.weechat/weechat.conf index 5ac7b0f..452fce3 100644 --- a/.weechat/weechat.conf +++ b/.weechat/weechat.conf @@ -57,7 +57,7 @@ eat_newline_glitch = off emphasized_attributes = "" highlight = "" highlight_regex = "" -highlight_tags = "slack_channel+nick_pingdom" +highlight_tags = "slack_channel+nick_pingdom,slack_channel+nick_kibana,slack_channel+nick_alertmanager" hotlist_add_conditions = "${away} || ${buffer.num_displayed} == 0" hotlist_buffer_separator = ", " hotlist_count_max = 2 @@ -393,6 +393,7 @@ vi_line_numbers.size_max = 0 vi_line_numbers.type = window [layout] +_zoom.window = "1;0;0;0;python;mintlab.slack.com.petermoen" [notify] -- cgit v1.1 From d2fd4236ae913803862568b06c549d77e378b9b3 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 6 Jan 2020 18:28:38 +0100 Subject: Add shorthand for store0-0 --- .ssh/known_hosts | 1 + 1 file changed, 1 insertion(+) diff --git a/.ssh/known_hosts b/.ssh/known_hosts index fa9a3e6..cda3872 100644 --- a/.ssh/known_hosts +++ b/.ssh/known_hosts @@ -11,6 +11,7 @@ lists.dblug.nl,80.211.179.238 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNT minion4.tyil.net,116.203.88.186 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAdz+5Cgsd1VzopB+zYm5WCRtqoS19UXwD6Q3zqZH+4XdTWkL/pQck6yhildQA9A1nJbXlRl3oCKaA20bWomoDU= minion5.tyil.net,116.203.82.157 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFQ6T3xwyBmQ73qLqc60YupMOxeq5L5ojpRwEQefI0ohg36L5PiunGt0hDK5B7+aX6v7s1Qpzi1sjL7IfRT2KDA= minion6.tyil.net,116.203.136.58 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOoy3n+I2CfCE5dak1tLw5xguDGUD66F02rTzO03m3du8kSR8XFRaUhwoq+Fc70og4TAldmObFyXQtugZg1eAds= +store0-0 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLpOlQ7Dvgbi2Cl22chYwQJwmoYl2Fp8yfDA28/Pzchha+zAAUXgoSlyHPIhH0zYXu5qrMayz/gpGPrkYGyO0hY= store0-0.tyil.net,37.59.61.70 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLpOlQ7Dvgbi2Cl22chYwQJwmoYl2Fp8yfDA28/Pzchha+zAAUXgoSlyHPIhH0zYXu5qrMayz/gpGPrkYGyO0hY= tyil.email,81.2.255.186 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDCv3CP4eRfkGgx7IDKoi4X6nz4E8GzhLEmoXfhcMudCD4qXXtXyVSOgvAlbiIdV1IdNngDWsPJtAh6wRYZomU4= -- cgit v1.1