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
| { | |
| "AL": "Alabama", | |
| "AK": "Alaska", | |
| "AS": "American Samoa", | |
| "AZ": "Arizona", | |
| "AR": "Arkansas", | |
| "CA": "California", | |
| "CO": "Colorado", | |
| "CT": "Connecticut", | |
| "DE": "Delaware", |
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 | |
| # Functions ============================================== | |
| # return 1 if global command line program installed, else 0 | |
| # example | |
| # echo "node: $(program_is_installed node)" | |
| function program_is_installed { | |
| # set to 1 initially | |
| local return_=1 |
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
| -- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor | |
| -- 2. Substitute "vpn.example.com" and "redacted" for your VPN server and password | |
| -- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility | |
| -- 4. Enable Applescript Editor and System UI Server | |
| -- 5. Trigger script from the menu | |
| -- 6. Enjoy being connected | |
| tell application "Cisco AnyConnect Secure Mobility Client" | |
| activate | |
| end tell |
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
| #!/usr/bin/env bash | |
| list=( $(docker-machine ls | grep Running | awk '{ print $1 }') ) | |
| for i in "${list[@]}"; do | |
| ip=$(docker-machine ip $i) | |
| #remove line matching ip | |
| sudo sed -i '' '/'$ip'/d' /etc/hosts | |
| #insert ip/host on last line | |
| sudo sed -i -e '$a\ |
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
| -- 1. Create a new generic password entry in Keychain Access called "WHATEVER_AnyConnect_VPN" (the name in Keychain access must match that in line 39 below) with your password for the Cisco AnyConnect VPN server. | |
| -- 2. Open this script in Script Editor (both this and the above are in the Applications->Utilities folder) and "Save as.." an Application (.app) with desired name. | |
| -- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility. | |
| -- 4. Enable the above .app so it can access Accessibility | |
| -- 5. Copy and paste a nice icon on the generic Applescript icon (I used a copy of the default AnyConnect one) | |
| -- 6. Add the new .app to /Users/[yourshortname]/Applications with a shortcut to your Dock | |
| -- 7. Enjoy the fast connection with no need to enter password and increased security of not having a sensitive password stored as plain text | |
| -- 8. Run script again to close connection | |
| -- AnyConnect now refered to as targetApp |
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
| // Javascript helper functions for parsing and displaying UUIDs in the MongoDB shell. | |
| // This is a temporary solution until SERVER-3153 is implemented. | |
| // To create BinData values corresponding to the various driver encodings use: | |
| // var s = "{00112233-4455-6677-8899-aabbccddeeff}"; | |
| // var uuid = UUID(s); // new Standard encoding | |
| // var juuid = JUUID(s); // JavaLegacy encoding | |
| // var csuuid = CSUUID(s); // CSharpLegacy encoding | |
| // var pyuuid = PYUUID(s); // PythonLegacy encoding | |
| // To convert the various BinData values back to human readable UUIDs use: | |
| // uuid.toUUID() => 'UUID("00112233-4455-6677-8899-aabbccddeeff")' |
This is a way to install .NET 5 in your home directory without modifying the system.
At the time of this writing, Amazon Linux 2 for ARM64 almost works already, but there is a problem with the ICU library. I will show this problem and how to fix it.
- Start Amazon Linux 2 and sign in. (I recommend an m6g.medium instance