Skip to content

Instantly share code, notes, and snippets.

View rubicon's full-sized avatar
💯

Dax Davis rubicon

💯
View GitHub Profile
@rubicon
rubicon / reboot.sh
Created May 27, 2021 15:53 — forked from mbierman/reboot.sh
Restart Homebridge
#!/bin/sh
# Variables
update="false"
reboot="false"
hostname=$(hostname)
docker="/.dockerenv"
dir=$(dirname "$0")
IFTTTKEY="$(cat $dir/rebootdata.txt | grep IFTTTKEY | cut -f2 -d "=" )"
IFTTTrigger="$(cat $dir/rebootdata.txt | grep fpass | cut -f2 -d "=" )"
@rubicon
rubicon / TitleCase.pl
Last active December 13, 2020 19:47 — forked from gruber/TitleCase.pl
TitleCase.pl #Perl, #Programming, #Development
#!/usr/bin/perl
# This filter changes all words to Title Caps, and attempts to be clever
# about *un*capitalizing small words like a/an/the in the input.
#
# The list of "small words" which are not capped comes from
# the New York Times Manual of Style, plus 'vs' and 'v'.
#
# 10 May 2008
# Original version by John Gruber:
@rubicon
rubicon / custom_iterm_script.applescript.scpt
Last active November 28, 2024 02:35
[Alfred Custom iTerm Script]Script to allow Alfred to use ITerm as its terminal #Utilities #Alfred
-- Set this property to true to always open in a new window
property open_in_new_window : false
-- Handlers
on new_window()
tell application "iTerm" to create window with default profile
end new_window
on new_tab()
tell application "iTerm" to tell the first window to create tab with default profile