Skip to content

Instantly share code, notes, and snippets.

@BoxOfSnoo
BoxOfSnoo / .shellfishrc
Created September 23, 2025 15:20
Secure shellfish config file
# include this from .bashrc, .zshrc or
# another shell startup file with:
# source $HOME/.shellfishrc
#
# Running from Secure ShellFish
# this gives access to:
# openUrl to open pages or deeps links
# pbcopy to copy text to iOS clipboard
# pbpaste to paste from iOS clipboard
# quicklook to preview files
@BoxOfSnoo
BoxOfSnoo / .tmux.conf
Created September 23, 2025 14:19
Tmux-configuration
#set-option -g default-command "exec /bin/bash"
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
@BoxOfSnoo
BoxOfSnoo / Anniversaries.js
Last active October 3, 2025 13:19
Anniversaries
// Anniversaries v1.1 Jan 2019
let currentMonth = new Date().getMonth();
let startDate = new Date(new Date().setMonth(currentMonth-6));
// Add two months from today to show some upcoming anniversaries
let endDate = new Date(new Date().setMonth(currentMonth+7));
// Add a convenience function for brief month names
Date.prototype.getMonthName = function() {
@BoxOfSnoo
BoxOfSnoo / JWLib Link.js
Last active October 24, 2020 19:25
Create JW Lib Scripture link
let dailyText = await loadText()
if (config.runsInWidget) {
let widget = createWidget(dailyText)
Script.setWidget(widget)
Script.complete()
} else {
Safari.open(dailyText.wtlibUrl);
}