| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
| Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Tom Hale, 2016. MIT Licence. | |
| # Print out 256 colours, with each number printed in its corresponding colour | |
| # See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
| set -eu # Fail on errors or undeclared variables | |
| printable_colours=256 |
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (* | |
| Applescript snippet to resize front Finder Window icons | |
| - Inspired by Dr. Drang's Quick switch to big Finder icons script (http://www.leancrew.com/all-this/2013/10/quick-switch-to-big-finder-icons/) | |
| - Integrating into Dr. Drang's script is left as a trivial exercise for the reader :p | |
| - Seriously, I've discovered a lot of cool programming/engineering/life information at Dr. Drang's site <hat-tip>, so I'm not going to steal his thunder by releasing a complete script as my own. | |
| - Since every new OS X release deprecates Applescript programming even further, here's hoping 10.10 doesn't screw this up. I'm too jaded at this point to try the Yosemite beta. | |
| *) |
NewerOlder