Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# this is a bash script that emits a subtle cue for you to take notes at regular
# intervals during an interview.
# usage: ./interview_pinger.sh [interval] [duration]
# e.g., ./interview_pinger.sh 4 60 will tap you every four minutes during a 60 minute interview
# the intent is to have something subtle that you will recognize but which, even over speaker,
# the candidate will perceive as ambient noise
# Making it your own:
# The afplay program might need to be installed. Brew has it.
@richarmstrong
richarmstrong / onthisday.gs
Created December 17, 2018 21:25
Label all gmail conversations you were having on this day in the past.
// This function finds all the conversations you were having on this day in the past years (since Gmails release in 2005),
// and adds the "On This Day" label to them. Put it in a new apps script project and set it to run at 3am every day.
// It'll first clear out the label and then add all relevant messages.
function onThisDay(){
var onThisDayLabel = GmailApp.getUserLabelByName("On This Day")
var date = new Date()
var yesterday = new Date();
yesterday.setDate(yesterday.getDate() - 1);
var tomorrow = new Date();
tomorrow.setDate(tomorrow.getDate() + 1);

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: