Skip to content

Instantly share code, notes, and snippets.

@choiceforyou
choiceforyou / iterm2.md
Last active July 10, 2018 09:28 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Fullscreen + Enter
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
@choiceforyou
choiceforyou / .gitconfig
Created October 17, 2015 13:51
Git coloured output
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
# git config --global color.ui auto
# git config --global color.branch auto
@choiceforyou
choiceforyou / gitCleanLocal.md
Created July 24, 2015 04:40
Commands in one line to cleanup branches in git folder

git checkout master && git pull && git branch --merged master | grep -v master | xargs -n 1 git branch -d

@choiceforyou
choiceforyou / .gitignore
Created May 3, 2015 09:43
iOS app git ignreo values
# xcode noise
build/*
project.xcworkspace/
*.xcuserstate
*.pbxuser
*.mode1v3
*~
!default.pbxuser
!default.mode1v3
*.mode2v3
@choiceforyou
choiceforyou / temp
Created March 12, 2015 11:37
VirtualBox: Snapshots filling up disk, what to do
https://sejh.wordpress.com/2015/01/08/virtualbox-snapshots-filling-up-disk-what-to-do/
@choiceforyou
choiceforyou / tree
Created January 22, 2015 22:27
Hack of Linux Tree command for Mac
#!/bin/bash
SEDMAGIC='s;[^/]*/;|____;g;s;____|; |;g'
if [ "$#" -gt 0 ] ; then
dirlist="$@"
else
dirlist="."
fi
@choiceforyou
choiceforyou / Mac Tips
Created December 31, 2014 02:53
Mac Tips
Save your current user profile photo
dscl . -read /Users/short_username JPEGPhoto | tail -1 | xxd -r -p > /path/to/folder/accountImage.jpg
@choiceforyou
choiceforyou / Gitcheatsheet
Created December 16, 2014 22:32
Git Cheatsheet (copied)
Using Git
===============
Global Settings
-----------
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
@choiceforyou
choiceforyou / Putty commands
Created December 11, 2014 23:38
Putty commands
Export Sessions
regedit /e "%userprofile%\desktop\putty-registry.reg" HKEY_CURRENT_USER\Software\Simontatham
@choiceforyou
choiceforyou / 2014-11-08 Composer Best Practices.html
Created November 24, 2014 22:54
Composer Best Practices by Jordi Boggiano
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html><head><title>Composer Best Practices</title><meta name="author" content="Jordi Boggiano"><meta name="email" content="[email protected]"><meta name="date" content="2014-11-08"><meta name="venue" content="TrueNorthPHP 2014"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- Slippy core file and dependencies --><script type="text/javascript">/*!
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*