Skip to content

Instantly share code, notes, and snippets.

@milojennings
milojennings / Time since Cadence was born.markdown
Created October 30, 2015 02:57
Time since Cadence was born

Time since Cadence was born

I was curious to know how old my niece was. This serves as a handy quick reference.

A Pen by FaceLord on CodePen.

License.

For setting the file's modification date to the creation date:

For videos

exiftool "-filemodifydate<CreateDate" *.MOV

For photos

exiftool "-filemodifydate<datetimeoriginal" *.JPG
@milojennings
milojennings / index.html
Created April 3, 2017 00:36
Time since Indie was born
<div class="wrap">
<h2>Time since <br>Indie was born <small id="birthdate">08/31/2015 4PM</small></h2>
<span class="heartbeat">Loading...</span>
<p id="total"></p>
<p id="secs"></p>
<p id="mins"></p>
<p id="hours"></p>
<p id="days"></p>
<p id="weeks"></p>
<p id="months"></p>
@milojennings
milojennings / speedtest-zapier.sh
Last active March 25, 2018 20:58 — forked from dvdsmpsn/speedtest-ifttt.sh
Modified version of Henrik Bengtsson's speedtest-cli code which will dispatch the test results to Zapier
#!/usr/bin/env bash
###########################################################################
# Originally written by: Henrik Bengtsson, 2014
# https://github.com/HenrikBengtsson/speedtest-cli-extras
# Modified to use Zapier by: Milo Jennings, 2018
# Further modified to store a permanent log locally with all the details in
# a CSV file on the desktop (designed for Mac use)
# License: GPL (>= 2.1) [http://www.gnu.org/licenses/gpl.html]
# See Google Sheet Template: https://docs.google.com/spreadsheets/d/1usJKKMoUpt-VWI94aJ_rU4qLj3ImjDoNt6HqFL-wcRE/edit?usp=sharing
# -------------------------------------------------------------------------
@milojennings
milojennings / .bash_aliases
Created October 12, 2018 22:03 — forked from facelordgists/.bash_aliases
My .bash_profile used on Mavericks OSX 10.9
#!/bin/bash
## ==================================
## Servers
## ==================================
# A server with a non-standard SSH port, using passwordless RSA key authentication
alias server1='ssh -p 2200 [email protected]'
# A server that uses a certficate for authentication