This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* To the extent possible under law, Rob Mayoff has waived all copyright and related or neighboring rights to “AppleScript to make Google Chrome open/reload a URL”. This work is published from: United States. https://creativecommons.org/publicdomain/zero/1.0/ *) | |
tell application "Google Chrome" | |
activate | |
set theUrl to "http://tycho.usno.navy.mil/cgi-bin/timer.pl" | |
if (count every window) = 0 then | |
make new window | |
end if | |
set found to false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git submodule foreach git submodule init && git submodule update --recursive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Curry takes a two argumented function and returns one func that returns a second func that each take one argument. | |
*/ | |
function curry (func) { | |
return function (x) { | |
return function (y) { | |
return func (x, y); | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Toggle Messenger Sidebar | |
// @namespace http://jamesswandale.com/ | |
// @version 0.1 | |
// @description Button to hide messengers list of conversations | |
// @match https://www.messenger.com/* | |
// @copyright 2015+, James Swandale | |
// @require http://code.jquery.com/jquery-latest.js | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
podlog () { | |
local pod=($(kubectl get pods --all-namespaces -o wide | fzf | awk '{print $1, $2}')) | |
echo kubectl logs -n ${pod[1]} ${pod[2]} | |
kubectl logs -n ${pod[1]} ${pod[2]} | |
} | |
podexec () { | |
local pod=($(kubectl get pods --all-namespaces -o wide | fzf | awk '{print $1, $2}')) | |
local cmd=${@:-"/bin/sh"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
shopt -s inherit_errexit 2>/dev/null || true | |
# this script will connect macOS to Cloudflare Warp using Wireguard | |
# note: this is *absolutely not* an official client from Cloudflare | |
# Copyright (C) 2019 Jay Freeman (saurik) | |
# Zero Clause BSD license {{{ |