Skip to content

Instantly share code, notes, and snippets.

View donatj's full-sized avatar
🥽
Getting back to business

Jesse Donat donatj

🥽
Getting back to business
View GitHub Profile
.g__font-family--Arial {
font-family: Arial;
}
.g__font-family--Tahoma {
font-family: Tahoma;
}
.g__font-family--serif {
font-family: serif;

Keybase proof

I hereby claim:

  • I am donatj on github.
  • I am donatj (https://keybase.io/donatj) on keybase.
  • I have a public key whose fingerprint is 74DD CFA8 9C3E 507F E14E 2809 4864 D96E 727F 69F9

To claim this, I am signing this object:

jdonat > JesseDonat-MBPrd ~/Sites/myon ±dev⚡ » brew install lastpass-cli --with-pinentry --with-doc 12:03:07
==> Installing dependencies for lastpass-cli: docbook, asciidoc, libgpg-error, libassuan, pinentry
==> Installing lastpass-cli dependency: docbook
==> Downloading https://homebrew.bintray.com/bottles/docbook-5.0.el_capitan.bottle.3.tar.gz
######################################################################## 100.0%
==> Pouring docbook-5.0.el_capitan.bottle.3.tar.gz
==> Using the sandbox
==> xmlcatalog --noout --create /usr/local/etc/xml/catalog
==> xmlcatalog --noout --del file:///usr/local/Cellar/docbook/5.0/docbook/xml/4.2/catalog.xml /usr/local/etc/xml/catalog
==> xmlcatalog --noout --add nextCatalog file:///usr/local/Cellar/docbook/5.0/docbook/xml/4.2/catalog.xml /usr/local/etc/xml/catalog
@donatj
donatj / # lastpass-cli - 2016-08-31_12-03-38.txt
Created August 31, 2016 17:08
lastpass-cli on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for lastpass-cli on Mac OS X 10.11.6
Build date: 2016-08-31 12:03:38
@donatj
donatj / main.go
Created May 10, 2016 16:50
Find issues between two release branches
package main
import (
"flag"
"fmt"
"log"
"regexp"
"sort"
"strconv"
"strings"
@donatj
donatj / ghopen.php
Created January 12, 2016 17:53
Open current project on Github. OS X only.
#!/usr/bin/env php
<?php
$cwd = getcwd();
$dirs = explode(DIRECTORY_SEPARATOR, $cwd);
$opened = [ ];
for( $i = count($dirs); $i >= 1; $i-- ) {
$set = array_slice($dirs, 0, $i);
$path = implode(DIRECTORY_SEPARATOR, $set);
@donatj
donatj / day7.go
Last active December 17, 2015 18:23
package main
import (
"fmt"
"strconv"
"strings"
)
var input = `bn RSHIFT 2 -> bo
lf RSHIFT 1 -> ly
@donatj
donatj / FixITunesPlayedCount.applescript
Created November 11, 2015 21:44
Fixes tracks with a last played but no played count.
tell application "iTunes"
(* this prevents an error on no tracks being found on the set below *)
set played count of first track where played count = 1 to 0
(* sometimes it leaves this if we don't wait *)
delay 1
set played count of every track where played count = 0 and played date ³ (date "Thursday, June 1, 2000 at 12:00:00 AM") to 1
end tell
@donatj
donatj / mblen.php
Last active October 15, 2015 20:58
Gets byte length of characters read from stdin
#!/usr/bin/env php
<?php
mb_internal_encoding('UTF-8');
$string = '';
if( count($argv) > 1 ) {
$string .= implode(' ', array_slice($argv, 1));
} else {
while( $line = fgets(STDIN) ) {
@donatj
donatj / cp-branch
Last active October 20, 2016 18:12
Easily cherry pick one or more commits to a new branch
#!/bin/zsh
set -e
if [ $# -lt 3 ]
then
echo "Not Enough Arguments"
return 1
fi