Skip to content

Instantly share code, notes, and snippets.

View saralilyb's full-sized avatar
🤷‍♀️

Sara Burke saralilyb

🤷‍♀️
View GitHub Profile
@saralilyb
saralilyb / JWT Decode.sh
Created April 22, 2022 23:29 — forked from patro85/JWT Decode.sh
A BBEdit Text Filter script to take textual input and produce decode of JWT tokens.
#!/bin/bash
#
# JWT Decode
# https://gist.github.com/patro85/2a76d16181730989b9b9af6a7ca6cd1e
#
# A BBEdit Text Filter script to take textual input and produce decode of JWT tokens.
# Note: Signature section is ignored. Meant to be used in conjunction with a separate JSON
# formatter.
#
# Installation instructions: Place this file in BBEdit's "Text Filters" folder inside of
@saralilyb
saralilyb / shh.rb
Created March 8, 2018 19:07 — forked from robinsloan/shh.rb
Disable RTs from all the people you follow on Twitter.
require "rubygems"
require "twitter"
# get these from apps.twitter.com
CONSUMER_KEY = "foo"
CONSUMER_SECRET = "bar"
OAUTH_TOKEN = "blee"
OAUTH_TOKEN_SECRET = "baz"
TWITTER_USER = "your_username" # needs to be the one associated with keys above
@saralilyb
saralilyb / trailing-slash-middleware
Created June 12, 2017 21:52 — forked from dannypurcell/trailing-slash-middleware
Ring middleware fn. Removes a trailing slash from the uri before calling the handler.
(defn ignore-trailing-slash
"Modifies the request uri before calling the handler.
Removes a single trailing slash from the end of the uri if present.
Useful for handling optional trailing slashes until Compojure's route matching syntax supports regex.
Adapted from http://stackoverflow.com/questions/8380468/compojure-regex-for-matching-a-trailing-slash"
[handler]
(fn [request]
(let [uri (:uri request)]
(handler (assoc request :uri (if (and (not (= "/" uri))

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@saralilyb
saralilyb / say.sh
Created January 7, 2016 04:07 — forked from dkarter/say.sh
OS X `Say` voices try out
echo 'Agnes'
say -v 'Agnes' "Isn't it nice to have a computer that will talk to you?"
echo 'Albert'
say -v 'Albert' "I have a frog in my throat. No, I mean a real frog!"
echo 'Alex'
say -v 'Alex' "Most people recognize me by my voice."
echo 'Alice'
say -v 'Alice' "Salve, mi chiamo Alice e sono una voce italiana."
echo 'Alva'
say -v 'Alva' "Hej, jag heter Alva. Jag är en svensk röst."