Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| 2017/06/02 20:57:26 [INFO] Terraform version: 0.9.6 | |
| 2017/06/02 20:57:26 [INFO] Go runtime version: go1.8.3 | |
| 2017/06/02 20:57:26 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.9.6/bin/terraform", "env", "new", "va02"} | |
| 2017/06/02 20:57:26 [DEBUG] Detected home directory from env var: /Users/johnson.chris | |
| 2017/06/02 20:57:26 [DEBUG] Discovered plugin: herokuinternal = /Users/johnson.chris/.terraform.d/plugins/terraform-provider-herokuinternal | |
| 2017/06/02 20:57:26 [DEBUG] Discovered plugin: libratointernal = /Users/johnson.chris/.terraform.d/plugins/terraform-provider-libratointernal | |
| 2017/06/02 20:57:26 [DEBUG] Detected home directory from env var: /Users/johnson.chris | |
| 2017/06/02 20:57:26 [DEBUG] Attempting to open CLI config file: /Users/johnson.chris/.terraformrc | |
| 2017/06/02 20:57:26 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
| 2017/06/02 20:57:26 [DEBUG] Detected home directory from env var: /Users/johnson.chris |
This should be one of the core features of Git, but for some reason it's impossible to figure out how to search for a string in your commit history and see the diffs that that string is in. Here's the best I've come up with:
To find which commits and which files a string was added or removed in:
git log -S'search string' --oneline --name-status
To see the diff of that
| #! /usr/bin/env bash | |
| # shellcheck disable=SC2059 | |
| set -euo pipefail | |
| # Toggle all currently 'Active' network servcies (e.g., Wi-Fi, Ethernet | |
| # connections, etc...) to "restart" them. We'll ignore any already 'Disabled' | |
| # services, and toggle all of the others to 'Disabled' and then back to | |
| # 'Enabled'. This has been found helpful when your VPN won't re-connect after | |
| # undocking and re-docking your MacBook, for example. |