Slide 1

Slide 1 text

Developer Productivity Tips for Mac with Matthew McCullough and Tim Berglund

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

a more productive developer

Slide 4

Slide 4 text

language-agnostic

Slide 5

Slide 5 text

trial and error and trial and success

Slide 6

Slide 6 text

UNIX roots

Slide 7

Slide 7 text

The Platform ✓POSIX compliant ✓Ruby, Bash, and Zsh scripts work out of the box ✓Application-imposed common shortcuts

Slide 8

Slide 8 text

Keyboard hacks

Slide 9

Slide 9 text

expand snippets system-wide

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

customize shortcuts system- wide

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

emacs hotkeys system-wide

Slide 16

Slide 16 text

⌃+a Go to beginning of line ⌃+e Go to end of line

Slide 17

Slide 17 text

⌃+u Delete from cursor to beginning of line ⌃+k Delete from cursor to end of line

Slide 18

Slide 18 text

⌃+w Erase word to left ⌃+t Transpose characters around cursor

Slide 19

Slide 19 text

⌥⌃+f Move forward a word ⌥⌃+b Move backwards a word

Slide 20

Slide 20 text

modifier Keys

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

Safari keyboard Link Selection

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Terminal tips

Slide 25

Slide 25 text

iTerm 2

Slide 26

Slide 26 text

multi-monitor compatible full screen

Slide 27

Slide 27 text

multi-tab profiles

Slide 28

Slide 28 text

preservable window layouts

Slide 29

Slide 29 text

enhanced terminal prompts

Slide 30

Slide 30 text

$ echo "This is devoid of any useful info" $

Slide 31

Slide 31 text

[scripts (master)⚡]> echo "This is more informative"

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

╭─mccm06 at Detronia in ~/Downloads ╰─○ echo "This is much more informative" ╭─mccm06 at Detronia in ~/GitHubProjects ╰─○

Slide 34

Slide 34 text

Source Control assistants

Slide 35

Slide 35 text

tig Git ASCII GUI

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

the hub gem

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

command line for GitHub

Slide 40

Slide 40 text

uses the GitHub API

Slide 41

Slide 41 text

$ hub clone dotfiles Cloning into 'dotfiles'... remote: Counting objects: 560, done. remote: Compressing objects: 100% (292/292), done. remote: Total 560 (delta 288), reused 517 (delta 256) Receiving objects: 100% (560/560), 214.32 KiB | 316 KiB/s, done. Resolving deltas: 100% (288/288), done.

Slide 42

Slide 42 text

file Formats

Slide 43

Slide 43 text

the Markdown format

Slide 44

Slide 44 text

Gruber, daring fireball

Slide 45

Slide 45 text

Multimarkdown

Slide 46

Slide 46 text

GitHub Flavored Markdown

Slide 47

Slide 47 text

the Asciidoc format

Slide 48

Slide 48 text

show gradle nao

Slide 49

Slide 49 text

the DocBook format

Slide 50

Slide 50 text

leveraging the Pandoc toolchain

Slide 51

Slide 51 text

Package management

Slide 52

Slide 52 text

MacPorts

Slide 53

Slide 53 text

rsync-based package manager

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

Homebrew

Slide 56

Slide 56 text

Git-based package manager

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

searching with Spotlight

Slide 60

Slide 60 text

search criteria constraints

Slide 61

Slide 61 text

name: objects with this phrase in their file name

Slide 62

Slide 62 text

kind: objects of this type

Slide 63

Slide 63 text

date: objects modified on this date

Slide 64

Slide 64 text

date:today objects modified today

Slide 65

Slide 65 text

date:>1/1/08 objects modified after 1/1/08

Slide 66

Slide 66 text

modified:3/7/08-3/10/08 objects modified between these two dates

Slide 67

Slide 67 text

created:=6/1/08 objects created on this date

Slide 68

Slide 68 text

AND join two rules together

Slide 69

Slide 69 text

OR optionally join two rules together

Slide 70

Slide 70 text

NOT exclude a second condition

Slide 71

Slide 71 text

search result behaviors

Slide 72

Slide 72 text

⌘⌥ show path to file

Slide 73

Slide 73 text

⌘ open containing folder in Finder

Slide 74

Slide 74 text

moving with Finder

Slide 75

Slide 75 text

moving files without cut

Slide 76

Slide 76 text

⌘C copies file to pasteboard

Slide 77

Slide 77 text

⌘⌥ V moves file from pasteboard

Slide 78

Slide 78 text

viewing with QuickLook

Slide 79

Slide 79 text

QuickLook Extensions

Slide 80

Slide 80 text

for Java files

Slide 81

Slide 81 text

for ZIP files

Slide 82

Slide 82 text

for Markdown files

Slide 83

Slide 83 text

for XML files

Slide 84

Slide 84 text

QuickLook from the CLI

Slide 85

Slide 85 text

$ ql

Slide 86

Slide 86 text

$ qlmanage -p "$@" >& /dev/null &

Slide 87

Slide 87 text

saving to the Cloud

Slide 88

Slide 88 text

saving to CloudApp

Slide 89

Slide 89 text

No content

Slide 90

Slide 90 text

No content

Slide 91

Slide 91 text

$ cloudapp Uploaded to http://cl.ly/text/ 1B0T0t2e0V3c.

Slide 92

Slide 92 text

saving to Gists

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

Tweeting with T

Slide 95

Slide 95 text

No content

Slide 96

Slide 96 text

$ t update "Chirp from the CLI"

Slide 97

Slide 97 text

$ t update "At the @OReillyMedia studio in Sebastopol with the @tlberglund, ready to record some more videos with Kirk and crew." Tweet posted by @matthewmccull. Run `t delete status 369592150104633344` to delete.

Slide 98

Slide 98 text

$ t update X

Slide 99

Slide 99 text

Web Service helpers

Slide 100

Slide 100 text

curl for URLs

Slide 101

Slide 101 text

curl -I www.serverwatch.com

Slide 102

Slide 102 text

curl api.github.com

Slide 103

Slide 103 text

wget for files

Slide 104

Slide 104 text

Pasteboard command line

Slide 105

Slide 105 text

pbcopy

Slide 106

Slide 106 text

curl serverwatch.com | pbcopy

Slide 107

Slide 107 text

pbpaste

Slide 108

Slide 108 text

pbpaste | gist

Slide 109

Slide 109 text

Shell tune-ups

Slide 110

Slide 110 text

Zsh

Slide 111

Slide 111 text

No content

Slide 112

Slide 112 text

oh-my-zsh

Slide 113

Slide 113 text

No content

Slide 114

Slide 114 text

dotfiles on GitHub

Slide 115

Slide 115 text

search for "dotfiles" repositories

Slide 116

Slide 116 text

@pengwynn

Slide 117

Slide 117 text

@holman

Slide 118

Slide 118 text

@matthewmccullough

Slide 119

Slide 119 text

@

Slide 120

Slide 120 text

Display control

Slide 121

Slide 121 text

Caffeine

Slide 122

Slide 122 text

GUI component

Slide 123

Slide 123 text

No content

Slide 124

Slide 124 text

No content

Slide 125

Slide 125 text

No content

Slide 126

Slide 126 text

Caffeinate

Slide 127

Slide 127 text

command line

Slide 128

Slide 128 text

$ caffeinate

Slide 129

Slide 129 text

$ caffeinate -t 144000 &

Slide 130

Slide 130 text

$ caffeinate

Slide 131

Slide 131 text

layout windows with Slate

Slide 132

Slide 132 text

arrange windows

Slide 133

Slide 133 text

size windows

Slide 134

Slide 134 text

switch windows

Slide 135

Slide 135 text

text based configuration file

Slide 136

Slide 136 text

No content

Slide 137

Slide 137 text

bind e:cmd;alt;ctrl;shift ${showHintsLeftHand} bind right:cmd;alt;ctrl;shift push right bar-resize:screenSizeX/2 bind left:cmd;alt;ctrl;shift push left bar-resize:screenSizeX/2 bind up:cmd;alt;ctrl;shift push up bar-resize:screenSizeY/2 bind down:cmd;alt;ctrl;shift push down bar-resize:screenSizeY/2

Slide 138

Slide 138 text

bind g:cmd;alt;ctrl;shift move ${centered} bind o:cmd;alt;ctrl;shift move ${fullscreen} bind h:cmd;alt;ctrl;shift move ${leftHalf} bind j:cmd;alt;ctrl;shift move ${bottomHalf} bind k:cmd;alt;ctrl;shift move ${topHalf} bind l:cmd;alt;ctrl;shift move ${rightHalf} bind u:cmd;alt;ctrl;shift move ${topLeftQuarter} bind i:cmd;alt;ctrl;shift move ${topRightQuarter} bind n:cmd;alt;ctrl;shift move ${bottomLeftQuarter} bind m:cmd;alt;ctrl;shift move ${bottomRightQuarter}

Slide 139

Slide 139 text

AppleScript automation

Slide 140

Slide 140 text

script Finder sleep

Slide 141

Slide 141 text

osascript -e 'tell application "Finder" to sleep'

Slide 142

Slide 142 text

Automator apps

Slide 143

Slide 143 text

reformat to JPEG

Slide 144

Slide 144 text

Command Line GUI launches

Slide 145

Slide 145 text

open

Slide 146

Slide 146 text

open -a "TextMate"

Slide 147

Slide 147 text

Frecency directory navigation

Slide 148

Slide 148 text

z

Slide 149

Slide 149 text

Quick directory toggles

Slide 150

Slide 150 text

cd -

Slide 151

Slide 151 text

Proxy icon for files and folders

Slide 152

Slide 152 text

Drag to copy a file

Slide 153

Slide 153 text

Drag to copy a file path

Slide 154

Slide 154 text

show Hidden files and folders

Slide 155

Slide 155 text

defaults write com.apple.Finder AppleShowAllFiles YES

Slide 156

Slide 156 text

type to change folders

Slide 157

Slide 157 text

⌘+⇧+G

Slide 158

Slide 158 text

os Screen Change

Slide 159

Slide 159 text

fn⌘ F1 = Mirror screen ⌃⌥⌘ 8 = Invert colors

Slide 160

Slide 160 text

keyboard based Screen Navigation

Slide 161

Slide 161 text

⌃Shift+ F2 = Select menu bar

Slide 162

Slide 162 text

No content

Slide 163

Slide 163 text

Boxen

Slide 164

Slide 164 text

No content

Slide 165

Slide 165 text

The Big Ideas of Boxen

Slide 166

Slide 166 text

the Pre-Reqs

Slide 167

Slide 167 text

the Setup

Slide 168

Slide 168 text

the Boxen web app

Slide 169

Slide 169 text

the Boxen repo

Slide 170

Slide 170 text

Running Boxen

Slide 171

Slide 171 text

Adding packages

Slide 172

Slide 172 text

Adding applications

Slide 173

Slide 173 text

Adding puppet modules

Slide 174

Slide 174 text

Curating settings

Slide 175

Slide 175 text

No content

Slide 176

Slide 176 text

in Sum...

Slide 177

Slide 177 text

hotkeys

Slide 178

Slide 178 text

automation

Slide 179

Slide 179 text

modifers

Slide 180

Slide 180 text

spotlight filters

Slide 181

Slide 181 text

replacements

Slide 182

Slide 182 text

add-ons

Slide 183

Slide 183 text

metadata

Slide 184

Slide 184 text

Developer Productivity Tips for Mac with Matthew McCullough and Tim Berglund

Slide 185

Slide 185 text

Credits ✓ "Keyboard" designed by Luboš Volkov, http://thenounproject.com/noun/keyboard/#icon-No20868 ✓ "Computer" designed by Edward Boatman, http://thenounproject.com/noun/computer/#icon-No115 ✓ "Code" designed by Dmitry Baranovskiy, http://thenounproject.com/noun/html-code/#icon-No4991 ✓ "Written Document" designed by Thomas Le Bas, http://thenounproject.com/noun/written-document/#icon-No6119 ✓ "Package" designed by Arthur Schmitt, http://thenounproject.com/noun/package/#icon-No18159 ✓ "Magnifying Glass" designed by Edward Boatman, http://thenounproject.com/noun/magnifying-glass/#icon-No95 ✓ "Checklist" designed by Michael Young, http://thenounproject.com/noun/checklist/#icon-No3559 ✓ "Eye" designed by Volodin Anton, http://thenounproject.com/noun/eye/#icon-No17181 ✓ "Cloud" designed by Dmitry Baranovskiy, http://thenounproject.com/noun/cloud/#icon-No9758 ✓ "HTML Code" designed by WebPlatform.org, http://thenounproject.com/noun/html-code/#icon-No13024 ✓ "Clipboard" by Seth Taylor, http://thenounproject.com/noun/clipboard/#icon-No1712 ✓ "Console" designed by Austin Andrews, http://thenounproject.com/noun/console/#icon-No8571 ✓ "Exit Full Screen" designed by Olyn LeRoy, http://thenounproject.com/noun/exit-full-screen/#icon-No4780 ✓ "Apple Core" designed by Richard Zeid, http://thenounproject.com/noun/apple-core/#icon-No9817 ✓ "Robot" designed by Kenneth Appiah, http://thenounproject.com/noun/robot/#icon-No1616 ✓ "Rocket" designed by Jean-Philippe Cabaroc, http://thenounproject.com/noun/rocket/#icon-No7427 ✓ "Compass" designed by Márcio Duarte, http://thenounproject.com/noun/compass/#icon-No7175 ✓ "Light Switch" designed by Alexandria Eddings, http://thenounproject.com/noun/light-switch/#icon-No18388 ✓ "Linked Files" designed by Iconoci, http://thenounproject.com/noun/linked-files/#icon-No10081 ✓ "Hidden" designed by Rémy Médard, http://thenounproject.com/noun/hidden/#icon-No21609 ✓ "Folder" designed by Cris Dobbins, http://thenounproject.com/noun/folder/#icon-No8928 ✓ "Map Marker" designed by Edward Boatman, http://thenounproject.com/noun/map-marker/#icon-No462 ✓ "Box Trolley" designed by Michael Zenaty, http://thenounproject.com/noun/box-trolley/#icon-No21806 ✓ "Coordination" designed by OCHA AVMU, http://thenounproject.com/noun/coordination/#icon-No4222