Skip to content

Instantly share code, notes, and snippets.

Avatar

Bruno Bronosky RichardBronosky

View GitHub Profile
@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
@RichardBronosky
RichardBronosky / install_latest_tmux.sh
Last active Dec 23, 2021
TMUX added command prompt tab completion menus v3.2!
View install_latest_tmux.sh
# SEE: https://github.com/tmux/tmux/blob/47923bd5f62f49924e20f3cabcff9350968449a2/CHANGES#L320-L323
# FROM: https://github.com/tmux/tmux#from-version-control
tmux -V
cd ~/src/
git clone https://github.com/tmux/tmux
cd tmux/
sudo apt install bison make pkg-config autotools-dev automake libevent-dev libncurses-dev
sh autogen.sh
@RichardBronosky
RichardBronosky / tmux-panes.sh
Last active Dec 23, 2021 — forked from dmckean/tmux-panes.sh
A combination of the tmux commands: list-sessions list-windows and list-panes
View tmux-panes.sh
#! /usr/bin/env bash
hi_color=$(tput setaf 4) #blue
bold=$(tput bold)
underline=$(tput smul)
normal=$(tput sgr0)
read -r -d '' usage << DOC
Prints out a table of tmux sessons, windows, and panels.
View add_ca_cert_to_python.sh
#!/usr/bin/env bash
set -eu
declare -t _lastcmd; trap '_lastcmd="$BASH_COMMAND"' DEBUG; trap 'echo "LINE $LINENO: $_lastcmd"' EXIT;
# export CA PEM from Apple "Keychain Access" app and pass as ARG1
new_ca_cert="$1"
get_python_cert_chain(){
python -m certifi
}
View based.linux.sh
#!/bin/bash
# gzip < hello_linux | base64 -b 76 > hello_linux.gz.base64
# :r !gzip < hello_linux | base64 -b 76
touch hello_linux; chmod +x hello_linux
( base64 -d | gunzip ) >hello_linux <<BASE64
H4sIAAGhdGAAA+1bb2gcxxWf+6N/kX06KXakWC6+OA5Rkmp9dmJFqe14T39XydlWHSltaZXJWXeS
Ltwf9W7PkVpobdS6HKlTlRLol0Ag+eBSAv1S4pSS2Mi1v5mEFmpoCsbEVG2aRIHWmEK0nZl9b29n
bpXaX0oL++Du7fvNezNv3s7evr2d9/3h5EgwECBIQfIk4ZIe1YWsA36u31FhWD9pZd9fIttJI5PD
Lj2d6BKfCxKJN4NeCOzOAn42qEt8O+ghD7h4mLhJl7gOjchJtGbX4JIJzA/5mzAAcred6CoGeEyX