Skip to content

Instantly share code, notes, and snippets.

@joshellington
joshellington / gist:5dadb27095e940314821
Created May 19, 2014 01:07
Backup your Github organization repos.
require 'github_api'
require 'optparse'
require 'pp'
options = {}
OptionParser.new do |opts|
opts.banner = "Usage: github_org_backup.rb [options]"
opts.on("-u", "--user USER", "Your Github username") do |v|
options[:user] = v
window.onclick=function() {
alert('wtf!');
}
@joshellington
joshellington / kagi-darkmustard-theme.css
Last active March 12, 2025 19:39
A slightly refined, dark-focused, mobile-supported Kagi theme. Works best using Dark Theme, and either Moon Dark or Royal Blue.
:root {
--font-main: "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--font-lufga: "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.theme_dark, .theme_moon_dark, .theme_moon_dark_conditional {
--app-bg: #181715;
--page-text: #F2E6D7;
--app-text: #F2E6D7;
--primary: #F2E6D7;
@joshellington
joshellington / audio-switch-next.sh
Created January 1, 2025 21:08
Bash script to switch between desired audio output options. Currently bound to "Page Down" key personally, using Karabiner.
#!/bin/bash
# Path to SwitchAudioSource
SWITCH_AUDIO="/opt/homebrew/bin/SwitchAudioSource"
# Get current output device
current=$("$SWITCH_AUDIO" -c)
# Define preferred devices in order
declare -a devices=(