Skip to content

Instantly share code, notes, and snippets.

View idrysdale's full-sized avatar

Ian Drysdale idrysdale

View GitHub Profile
#!/bin/sh -eux
echo What YouTube song would you like? [Paste the URL]
read youtube_url
youtube-dl -o "tmp/temp.%(ext)s" --extract-audio --audio-format mp3 "${youtube_url}$"
sox tmp/temp.mp3 tmp/temp-resample.mp3 rate 48000
sox --norm=-0.1 tmp/temp-resample.mp3 tmp/temp-normal.mp3
DURATION=$(sox tmp/temp-normal.mp3 -n stat 2>&1 | sed -n 's#^Length (seconds):[^0-9]*\([0-9.]*\)$#\1#p')

Week 1

Flashback 🔮

This time last year, Paul built a bot that emails you a reminder if you’re PGP key is about to expire. To date it’s sent out around 125,000 emails, received (plenty of praise) and raised enough in donations to cover its server costs.

Since then we’ve quit our day jobs in the pursuit of building digital products that give you back control of your online information (read: life). Privacy is a basic human right.

We’ve had a few weeks of working on and off at this over the summer, but for the sake of simplicity we’re calling this week 1…

Keybase proof

I hereby claim:

  • I am idrysdale on github.
  • I am idrysdale (https://keybase.io/idrysdale) on keybase.
  • I have a public key ASCtXgl3ZkGNJHe1e7yTvSabaZTgIKCrMwvftR6SscLIjwo

To claim this, I am signing this object: