Skip to content

Instantly share code, notes, and snippets.

View jensenak's full-sized avatar

Adam Jensen jensenak

View GitHub Profile
@jensenak
jensenak / to.sh
Created July 1, 2025 14:23
to.sh
#!/bin/bash
path_file=~/.saved_paths
save_location() {
if [[ "$1" =~ [A-Za-z0-9_]+ ]]
then
existing="$(grep "^$1 " "$path_file" | cut -d\ -f3)"
if [ -n "$existing" ]
then

Keybase proof

I hereby claim:

  • I am jensenak on github.
  • I am jensenak (https://keybase.io/jensenak) on keybase.
  • I have a public key whose fingerprint is 11AA 67A2 AB12 9964 E596 81A3 6B91 61C6 9B48 43EF

To claim this, I am signing this object:

@jensenak
jensenak / reinvent-2018-schedule-helper.js
Last active November 21, 2018 02:35
Quick set of functions to make it easier to see what's available at re:Invent 2018. Intended for use from the browser console on the AWS re:Invent 2018 Event Catalog.
// Use the code below to simplify your re:Invent 2018 schedule search.
// Paste these into your browser console just once. They will remain in scope even after you change filters.
function openSchedules(elems) {
// As long as the list of elements is non-zero in length, expand the last element and call openSchedules with the rest.
if (elems.length) {
var el = elems.pop();
setTimeout(openSchedules, 200, elems); // You could shorten the timeout, but that probably isn't polite.
el.click();
} else {