Skip to content

Instantly share code, notes, and snippets.

Avatar

Bruno Bronosky RichardBronosky

View GitHub Profile
@RichardBronosky
RichardBronosky / pseudonvim
Last active Jul 8, 2022
Pseudonvim: vim pseudonyms for nvim
View pseudonvim
#! /usr/bin/env bash
set -eu
nym="$(basename $0)"
pseudonyms=(
"vim:nvim"
"vimdiff:nvim -d"
"view:nvim -R"
"ex:nvim -e"
"exim:nvim -E"
"rview:nvim -RZ"
@RichardBronosky
RichardBronosky / aurutils_inst_conf.md
Last active Jul 8, 2022 — forked from geosharma/aurutils_inst_conf.md
Arch Linux: aurutils installation and configuration
View aurutils_inst_conf.md

aurutils installation and configuration

This is not a getting started guide, just notes to myself. Due to my limited knowledge there could be mistakes and better ways to do things. I have configured aurutils to the best of my knowledge after reading the manpages and forums. Please refer to aurutils(7) manpages for installation and configuration.

Reference: aurutils(7)

Install aurutils

Install the aurutils using the normal AUR package installation procedure. Until I found aurutils, I used to create a separate directory ~/arc/aur/arch for all AUR packages and ~/arc/aur/$USER for all personal packages not in the AUR.

View neofetch.conf
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
info title
info underline
info "OS" distro
info "Host" model
info "Kernel" kernel
info "Uptime" uptime
@RichardBronosky
RichardBronosky / gitconfig-use_ssh_for_github.conf
Created May 31, 2022
Always clone via SSH regardless of using an HTTPS URL.
View gitconfig-use_ssh_for_github.conf
# Use SSH instead of HTTPS for github.com
[url "ssh://git@github.com/RichardBronosky"]
# This one allows you to clone from the URL in your browser address bar
insteadOf = https://github.com/RichardBronosky
# Use SSH instead of HTTPS for gist.github.com
# No, gist URLs do not indluce the username.
[url "ssh://git@gist.github.com/"]
# This one allows you to clone from the URL in your browser address bar. Example URL:
# https://gist.github.com/RichardBronosky/9db43c0e374933c82401fb2be85494aa
@RichardBronosky
RichardBronosky / autofork.js
Last active Apr 15, 2022 — forked from johan/autofork.js
Autoforking
View autofork.js
var f = document.createElement("form");
f.method = "POST";
f.action = location.pathname + "/fork";
f.appendChild(document.querySelector("form[action$=\\/fork] > input[name=authenticity_token]"));
document.body.appendChild(f)
f.submit();
View readme.md

Want to fork your own gists? No fork button? No problem! Install this user script by clicking refork.user.js' "raw" link down below: ⇓

@RichardBronosky
RichardBronosky / plugin.bash
Last active Apr 10, 2022
Helm plugin to list repos in a copy-paste friendly format for sharing
View plugin.bash
#! /usr/bin/env bash
set -eu
_usage(){
cat<<EOF
Usage:
./dependabot-merge.sh get_branches | ./dependabot-merge.sh checkout_merge_push_delete
EOF
_funcs | sed $'1i Functions:\n; s/^/ /'
@RichardBronosky
RichardBronosky / dependabot-merge.sh
Created Apr 10, 2022
CLI tool for merging dependabot PRs
View dependabot-merge.sh
#! /usr/bin/env bash
set -eu
_usage(){
cat<<EOF
Usage:
./dependabot-merge.sh get_branches | ./dependabot-merge.sh checkout_merge_push_delete
EOF
_funcs | sed $'1i Functions:\n; s/^/ /'
@RichardBronosky
RichardBronosky / imgist.sh
Last active Mar 10, 2022
Imgur was down, so I created Imgist
View imgist.sh
#! /usr/bin/env bash
set -eu
_main(){
input_file="$1"
file_path="$(realpath -s "$input_file")"
file_name="$(basename "$file_path")"
cd "$(dirname "$(realpath -s "${BASH_SOURCE[0]}")")"
cp "$file_path" ./
git add "$file_name"
@RichardBronosky
RichardBronosky / MICRenc.ttf.base64
Last active Dec 30, 2021
MICR Encoding font (base64 encoded) source: DigitalGraphicLabs.com
View MICRenc.ttf.base64
AAEAAAAKAIAAAwAgT1MvMhrDB94AAACsAAAATmNtYXBVqb7oAAAA/AAAA6ZnbHlmVzPUWAAABKQA
ADVAaGVhZODmvhYAADnkAAAANmhoZWEdMxCSAAA6HAAAACRobXR4ugQhhAAAOkAAAABcbG9jYYSU
k8YAADqcAAAAMG1heHAAHADwAAA6zAAAACBuYW1lCAdeTwAAOuwAAAHQcG9zdAADAAAAADy8AAAA
IAAACBYBkAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgsGAAUDAgICBAAAAAAAAAAAAAAAAAAA
AAAAAAAAAEAAIPACB38AAAiBB38AAAAAAAAAAgABAAAAAAAUAAMAAQAAARoAAAEGAAABAAAAAAAA
AAEDAAAAAgAAAAAAAAAAAAAAAAAAAAEAAAMAAAAAAAAAAAAAAAAAAAAEBQYHCAkKCwwNAAAAAAAA
AA4REhUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADxATFAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAFgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQCjAAAACIAIAAEAAIA/wFTAWEBeAGSAsYC3CAUIBogHiAi