Skip to content

Instantly share code, notes, and snippets.

@thechinnster
thechinnster / Important-Films-List.md
Last active January 27, 2024 17:54
Important Films
  • [Steamboat Bill, Jr. (1928)][imdb]
  • [Duck Soup (1933)][imdb-2]
  • [Grand Illusion (1937)][imdb 3]
  • [Rules of the Game (1939)][imdb 4]
  • [The Wizard of Oz (1939)][imdb 5]
  • [Citizen Kane (1941)][imdb 6]
  • [Casablanca (1942)][imdb 7]
  • [The Palm Beach Story (1942)][imdb 8]
  • [The Life and Death of Colonel Blimp (1943)][imdb 67]
  • [The Best Years of Our Lives (1946)][imdb 9]
@thechinnster
thechinnster / newsystem.md
Last active June 21, 2021 20:37
What to Install on a Fresh Mac

What To Install On A Fresh Mac

##Software

From App Store

  • [1Password][1]
  • [xCode][2]
  • [Hammerspoon][3]
  • [Caffeine][4]

HOWTO: Using FileMerge (opendiff) with Git on OSX

FileMerge (opendiff) can really come in handy when you need to visually compare merging conflicts. Other times it's just a nice visual way to review your days work.

The following method works by creating a simple bash script (git-diff-cmd.sh) that sets us up with the proper command line arguments for Git to pass off files to FileMerge.

@thechinnster
thechinnster / donetasksToDayone.sh
Created April 15, 2013 16:38
Text File to Day One
#!/bin/bash
doneFile=~/Dropbox/Apps/Drafts/Journal.txt
if [[ -s $doneFile ]] ; then
echo -e "\n\n #done" >> $doneFile
/usr/local/bin/dayone new < $doneFile
rm $doneFile
touch $doneFile
fi ;
#triangle-down {
width: 0;
height: 0;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
border-top: 100px solid red;
}

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@thechinnster
thechinnster / LitPicks.md
Created January 31, 2013 21:55
Ben's Lit Picks
@thechinnster
thechinnster / year-of-roth.md
Last active December 10, 2015 00:08
Year of Roth

Philip Roth has stopped writing novels. Having read all of the novels he's written I'm sad that I'll never read another one for the first time so the next best thing is reading them again. I invite you all to join me in reading a selection of these novels throughout 2013: The Year of Roth.

In order to keep the reading list manageable I've culled the complete bibliography, cutting off both ends (including all the late short books) and removing a few others. As much as some folks love The Great American Novel it's unquestionably minor Roth and I could do without reading it again. I've omitted The Plot Against America because it's long and a downer to have to end on. Feel free to pick it up on 1/1/2014.

Following is a list of included books with start dates:

My Life as a Man Feb 4
Portnoy's Complaint Jan 1
The Breast Jan 28
@thechinnster
thechinnster / conflict-regex
Created December 10, 2012 21:40
Regex for conflict markers
[<>=]{5}
@thechinnster
thechinnster / update
Created November 20, 2012 20:15 — forked from padcom/update
Git update hook forcing the existence of Jira ticket id at the beginning of the subject (first line in commit message)
#!/bin/bash
refname="$1"
oldrev="$2"
newrev="$3"
result=0
# Make sure we handle the situation when the branch does not exist yet
if ! [ $oldrev = 0000000000000000000000000000000000000000 ] ; then
excludes=( ^$oldrev )