Skip to content

Instantly share code, notes, and snippets.

View jlongtine's full-sized avatar

Joel Longtine jlongtine

View GitHub Profile
@jlongtine
jlongtine / README.md
Last active November 28, 2020 08:18
youtube-timestamp.ts

You can add this to Roam using {{[[roam/js]]}}

Grab the code in youtube-timestamps.js and drop it in a javascript code block:

  ```javascript```

You can have timestamps at the beginning of any nested block. H:MM:SS

You can use the ctrl+shift+y hotkey (currently assumes you have Roam42 installed, let me know if you'd prefer I drop that requirement) to grab the current timestamp of the video you're cursor is nested under and add it to the beginning of your block.

// ==UserScript==
// @name Paws
// @namespace http://tombenner.co/
// @version 0.0.1
// @description Keyboard shortcuts for the AWS Console
// @author Tom Benner
// @match https://*.console.aws.amazon.com/*
// @grant none
// @require https://code.jquery.com/jquery-1.11.3.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/mousetrap/1.4.6/mousetrap.js
curl --data-urlencode "url=<url>" "https://www.instapaper.com/api/add" --data-urlencode "username=<username>" --data-urlencode "password=<password>"

Keybase proof

I hereby claim:

  • I am jlongtine on github.
  • I am jlongtine (https://keybase.io/jlongtine) on keybase.
  • I have a public key ASCkRnO8uZ8o-PA-RjInQaiKTLPI4ktyEPgGrkw3OYSHWAo

To claim this, I am signing this object:

<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
shape-rendering: crispEdges;
}
.day {
@jlongtine
jlongtine / oct.js
Last active March 7, 2017 19:35
Overcast Time Calculator
(function() {
var regex = new RegExp("([0-9]{2,}) min");
function minutes_to_hhmm(t) {
if (isNaN(t)) return '-:--';
var h = parseInt(t / 60);
var m = t % 60;
return (h ? h + ':' : '') + (h ? ('0' + m).slice(-2) : m);
}
@jlongtine
jlongtine / install_graphite_statsd_ubuntu_precise.sh
Created September 14, 2012 16:41 — forked from bhang/install_graphite_statsd_ubuntu_precise.sh
Install Graphite on Ubuntu 12.04 LTS (Precise Pangolin)
#!/bin/bash
# node.js using PPA (for statsd)
sudo apt-get install python-software-properties
sudo apt-get update
# System level dependencies for Graphite
sudo apt-get install memcached python-dev python-pip sqlite3 libcairo2 \
libcairo2-dev python-cairo pkg-config

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.