- Python 3
- Pip 3
$ brew install python3| #!/usr/bin/env python | |
| """ | |
| Modified from | |
| http://macscripter.net/viewtopic.php?id=26675 | |
| http://apple.stackexchange.com/questions/90040/look-up-a-word-in-dictionary-app-in-terminal | |
| HowTo |
| .markdown-here-wrapper { | |
| font-size: 16px; | |
| line-height: 1.8em; | |
| letter-spacing: 0.1em; | |
| } | |
| pre, code { | |
| font-size: 14px; | |
| font-family: Roboto, 'Courier New', Consolas, Inconsolata, Courier, monospace; |
| -- Word and Character Count service for Mac OS X | |
| -- Adds a Word and Character Count option to the text selection context menu | |
| -- Use Automator to create a new service, then select the Run AppleScript action. Make | |
| -- sure the service is set to receive "text", at the top of the window. Paste in this code | |
| -- and save as "Word and Character Count". Now switch to a new app, select some text, | |
| -- right-click, go to Services, and find the new option. | |
| -- Copyright 2015, Noah Slater <[email protected]> |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo | |
| echo usage: $0 network-interface | |
| echo | |
| echo e.g. $0 eth0 | |
| echo | |
| echo shows packets-per-second |
with a hat tip to Sublime Text 2 Shortcuts
| ⌘; | autocomplete |
| ⌘⌥B | instant replay |
| ⌘⌥E | search across all tabs |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |