View create-standup.rb
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
#!/home/wes/.asdf/installs/ruby/3.0.2/bin/ruby | |
require 'uri' | |
require 'net/http' | |
uri = URI(ENV['STANDUP_GIST_URL'] + '?nocache=' + Time.now.to_i.to_s) | |
res = Net::HTTP.get_response(uri, { 'Cache-Control' => 'no-cache' }) | |
lines = { | |
'done' => [], | |
'wip' => [], |
View starship.toml
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
prompt_order = [ | |
"username", | |
"hostname", | |
"kubernetes", | |
"directory", | |
"git_branch", | |
"git_commit", | |
"git_state", | |
"git_status", | |
"hg_branch", |
View whisper-back-fill.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
#!/bin/bash | |
set -eo pipefail | |
if [ "$#" -lt 2 ] | |
then | |
>&2 echo 'Usage: whisper-back-fill.sh SOURCE_BASE_DIR DESTINATION_BASE_DIR' | |
>&2 echo 'e.g. given './data/dal05': whisper-back-fill.sh ./data /data/graphite/storage/' | |
exit 1 | |
fi |
View joke.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
#!/bin/bash | |
args=( '-e OO -T U' '-e ">o"' ) | |
lines=( 'knock knock' "who\'s there?" 'moo' 'moo who?' "aww don\'t cry, it\'ll be alright" ) | |
args_i=0 | |
for line in "${lines[@]}" | |
do | |
eval cowsay "${args[$args_i]}" "$line" |
View connect-vpn.expect
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/expect -f | |
set timeout -1 | |
set pin [ lindex $argv 0 ] | |
set token [ lindex $argv 1 ] | |
spawn gotunl -c 1 | |
expect "Enter the PIN:*" |
View vpn-status.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 | |
while ! [[ $(gotunl -l) == *Connected* ]] | |
do | |
echo -n . | |
sleep 1 | |
done | |
echo -e '\e[32mVPN connected!\e[0m' |
View Gemfile
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
# .github/actions/my-action/Gemfile | |
# frozen_string_literal: true | |
source 'https://rubygems.org' | |
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
gem 'json' |
View user.js
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
var mutationObserver = new MutationObserver(function(mutations) { | |
mutations.forEach(function(mutation) { | |
Array.prototype.forEach.call(document.querySelectorAll('.zhc-markdown a'), function(el, i) { | |
el.setAttribute('target', '_blank') | |
}) | |
}) | |
}) | |
mutationObserver.observe(document.documentElement, { | |
childList: true, |
View jenv
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 -e | |
if [ "$#" -gt 0 ] && [ "$1" = "shell" ] | |
then | |
shift | |
_SHIM_VERSION=${1:-$(asdf current ruby | awk '{print $1}')} | |
asdf sh-shell ruby "${_SHIM_VERSION}" | |
elif [ "$#" -gt 0 ] && [ "$1" = "version" ] |
View detect_zoom_active_call.scpt
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
on subListsToOneList(l) | |
set newL to {} | |
repeat with i in l | |
set newL to newL & i | |
end repeat | |
return newL | |
end subListsToOneList | |
tell application "System Events" | |
set windowList to name of window 1 of (processes whose name is "Zoom") |
NewerOlder