You can find information on my terminal configuration here
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
| [[Snippets]] | |
| Description = "my personal snippets. Relies on many of my own functions. If you're interested in pmset/disabling assertions, see: https://gist.github.com/varenc/627f6be2a5ec9d52dab3cf0d157be62f" | |
| Output = "" | |
| Tag = [] | |
| command = "" | |
| [[Snippets]] | |
| Description = "start dev file syncer. uses fswatch to know when to run rsync. does not sync .git file. Sort like a write-through cache network file system with only eventual consistency guarantees." | |
| Output = "" |
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
| [[snippets]] | |
| description = "Grep all files in a folder" | |
| command = "grep -rn \"texthere\" ." | |
| output = "" | |
| [[snippets]] | |
| description = "Sync only certain files using filters and rsync" | |
| command = "rsync -rv --include '*/' --include '*something*' --exclude '*' --prune-empty-dirs Source/ Target/" | |
| output = "" |
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
| """ | |
| When run in cron, automatically adds compliant alias names to local DNS. | |
| Use at your own risk. | |
| Patrick Fuller, 25 June 17 | |
| """ | |
| import re | |
| import paramiko | |
| import pymongo |
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
| #compdef tmutil | |
| # Autocompletion for macOS `tmutil` | |
| # | |
| # utility functions | |
| # | |
| # tmutil <verbs> | |
| __tmutil_verbs() { | |
| local -a allverbs |
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
| require "string" | |
| function checkBluetoothResult(rc, stderr, stderr) | |
| if rc ~= 0 then | |
| print(string.format("Unexpected result executing `blueutil`: rc=%d stderr=%s stdout=%s", rc, stderr, stdout)) | |
| end | |
| end | |
| function bluetooth(power) | |
| print("Setting bluetooth to " .. power) |
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
| # python3 version, derived from python2 version https://gist.github.com/dergachev/7028596 | |
| # | |
| # taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ | |
| # generate server.xml with the following command: | |
| # openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
| # run as follows: | |
| # python3 simple-https-server.py | |
| # then in your browser, visit: | |
| # https://localhost:4443 |
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
| # not an exhaustive list | |
| nsurlsessiond "icloud sync" | |
| fseventsd "macos file system events" | |
| WindowServer "macos windows" | |
| DisplayLinkManager "macos driver" | |
| configd "macos dynamic configuration" | |
| displaypolicyd "macos process" | |
| CommCenter "macos keychain" | |
| kernel_task "macos kernel" |
Custom format for displaying bytes as kb, mb, gb or tb.
Response to a few places on the internet: https://productforums.google.com/forum/#!topic/docs/x_T_N-yRUYg And here: https://stackoverflow.com/questions/1533811/how-can-i-format-bytes-a-cell-in-excel-as-kb-mb-gb-etc
Here is one that I have been using:
[<1000000]0.00," KB";[<1000000000]0.00,," MB";0.00,,," GB"
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
| Ranked by discretionary assets managed in hedge funds worldwide, in millions, as of June 30, 2018, unless otherwise noted. | |
| Rank Manager Assets Change from 2017 | |
| 1 Bridgewater Associates $132,756 7.9% | |
| 2 AQR Capital Mgmt. $83,700 9.2% | |
| 3 Man Group $59,100 11.3% | |
| 4 Renaissance Technologies $57,000 17.3% | |
| 5 Two Sigma Inv./Two Sigma Advisers $38,800 9.6% | |
| 6 Millennium Mgmt. $35,314 2.7% | |
| 7 Elliott Management $35,000 7.0% |