This file contains 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
#!/usr/bin/env bash | |
# set -e: exit on command failure | |
# set -u: error on using undefined variables | |
# set -o pipefail: fail a pipeline if any command within it fails | |
set -euo pipefail | |
# --------------------------------------------------------------------------- | |
# CLI script that updates or reads a value from a JSON file using jq. | |
# By default, it targets /Applications/Cursor.app/Contents/Resources/app/product.json, |
This file contains 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
# As of Ansible 2.5.2 reset_connection meta function is broken | |
# (see https://github.com/ansible/ansible/issues/27520) | |
# Below is reimplementation of reset_connect via local ssh command invocation | |
# Requires Ansible 2.5+ (config lookup plugin) and OpenSSH 5.9+ ("-O stop" command) | |
# *Update* | |
# Fixed in v2.5.6 | |
# https://github.com/ansible/ansible/blob/stable-2.5/changelogs/CHANGELOG-v2.5.rst#bugfixes-9 | |
- name: Reset persistent connection to host |