Skip to content

Instantly share code, notes, and snippets.

View Cheezmeister's full-sized avatar
🧀

Brendan Luchen Cheezmeister

🧀
View GitHub Profile
@Cheezmeister
Cheezmeister / seasonedTomato.js
Last active March 28, 2024 16:28
Extra ergonomic features for FreshTomato's router frontend
// Extra ergonomic features for FreshTomato's router frontend
// https://www.freshtomato.org/
let after = (ms, fn) => window.setTimeout(fn, ms);
let each = (ms, fn) => after(ms, () => { fn(); each(ms, fn); });
let Q = sel => [ ... document.querySelectorAll(sel) ];
// Color-code interfaces so we can tell who is wired in and who is on which wifi
[
@Cheezmeister
Cheezmeister / js_qr_telref.js
Created April 12, 2023 19:04
JS: QR Phone Numbers
links = [ ...
document.querySelectorAll('a')
].filter(el => !!el.href?.match(/^tel:.*/))
links.forEach(el => {
qrEl = document.createElement('a')
qrEl.innerText = 'QR'
qrEl.style = 'width: 16px; height: 16px; font-size: 8px; border-radius: 1px; border: 1px solid currentColor; background: cyan'
el.href = `https://duckduckgo.com/?q=!qr+${el.href}`
el.appendChild(qrEl)
export NVM_DIR="$HOME/.nvm"
export YVM_DIR=/usr/local/opt/yvm
load-nvm-and-yvm() {
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
[ -r $YVM_DIR/yvm.sh ] && . $YVM_DIR/yvm.sh
}
@Cheezmeister
Cheezmeister / otto
Last active January 17, 2020 19:11
#!/bin/bash
cd "$(git rev-parse --show-toplevel)" || exit
slack_channel=${OTTO_SLACK_CHANNEL:-'#development'}
# For best results, grab the following packages on OSX
# brew install hub go-jira slack-cli moreutils
usage() {
#!/bin/sh
cd "$(git rev-parse --show-toplevel)" || exit
usage() {
echo "Usage: $0 <featurebranch|pullrequest>"
echo ""
echo "Example:"
echo "$0 fb SP-1234"
#!/bin/sh
cd "$(git rev-parse --show-toplevel)" || exit
usage() {
echo "Usage: $0 <featurebranch|pullrequest>"
echo ""
echo "Example:"
echo "$0 fb SP-1234"