Skip to content

Instantly share code, notes, and snippets.

View RichardBronosky's full-sized avatar

Bruno Bronosky RichardBronosky

View GitHub Profile
@RichardBronosky
RichardBronosky / rpi-3-1.txt
Created March 17, 2024 10:05
Arducam 16MP Autofocus install failure
bruno@rpi-3-1:~ $ chmod +x ardu-test.sh
bruno@rpi-3-1:~ $ cat ardu-test.sh
#! /usr/bin/env bash
set -x
uname -a
sudo cat /etc/os-release
@RichardBronosky
RichardBronosky / BOILERPLATE.sh
Last active March 19, 2024 01:22
tools-rpi is a bash script full Raspberry Pi tools
#! /usr/bin/env bash
_setup_env() {
_env_blrplate
# Perform env setup by defining an _env function in calling script
if _is_function _env; then _env; fi
}
_env_blrplate() {
# ctrl chars for terminal colorizing
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Bruno Bronosky",
"label": "Principal DevOps Engineer and Trainer",
"image": "http://www.gravatar.com/avatar/959ccd33301cb3c15953c1a632a36763?s=500",
"email": "bruno@bronosky.com",
"phone": "(404) 992-7866",
"url": "https://github.com/RichardBronosky/resume",
"summary": "Born in the Appilachian mountains of West Virginia to a radio electronics technician, Bruno grew up in coal mining\ncountry where most of his classmates remain. He never threw a ball with his father, though they did attend a\nhandfull of Cincinnati Reds baseball games. They spent their nights and weekends soldering Heathkit projects from\nRadio Shack and writing games and equation solvers in Borland Turbo Basic, then Turbo Pascal, and eventually Delphi.\nWhen calling his father in 1995 to tell him Bruno got his first professional programming gig, they both saw this\nlike getting drafted in the MLB.
@RichardBronosky
RichardBronosky / pseudonvim
Last active July 8, 2022 14:52
Pseudonvim: vim pseudonyms for nvim
#! /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 July 8, 2022 06:01 — forked from geosharma/aurutils_inst_conf.md
Arch Linux: aurutils installation and configuration

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.

# 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 22:57
Always clone via SSH regardless of using an HTTPS URL.
# 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 April 15, 2022 03:47 — forked from johan/autofork.js
Autoforking
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();

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 April 10, 2022 08:14
Helm plugin to list repos in a copy-paste friendly format for sharing
#! /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/^/ /'