- Create user
- Add online accounts as needed
- Ubuntu One
| #!/bin/bash | |
| # External call to add/remove TCP 22 from SG | |
| # Environment variables | |
| AWS_SSH_KEY="" | |
| AWS_PROFILE=gov | |
| AWS_DEFAULT_REGION=us-gov-west-1 | |
| AWS_DEFAULT_PROFILE=gov | |
| AWS_CONFIG_FILE=~/.aws/config | |
| AWS_SHARED_CREDENTIALS_FILE=~/.aws/credentials |
| # Reset | |
| NC='\033[0m' # No color | |
| # Regular Colors | |
| Black='\033[0;30m' # Black | |
| Red='\033[0;31m' # Red | |
| Green='\033[0;32m' # Green | |
| Yellow='\033[0;33m' # Yellow | |
| Blue='\033[0;34m' # Blue | |
| Purple='\033[0;35m' # Purple |
| #!/bin/bash | |
| # Update AWS tokens in all profiles | |
| # Credentials File | |
| creds="/home/${USER}/.aws/credentials" | |
| # AWS username | |
| fed=${FED_USERNAME} | |
| # Convert UTC to local time | |
| tz=$(timedatectl | grep "Time zone" | awk '{ print $4 " " $5 }') | |
| # Get a list of profiles |
| sudo ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N '' -t ed25519 |
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| mQINBF2Cr7UBEADJZHcgusOJl7ENSyumXh85z0TRV0xJorM2B/JL0kHOyigQluUG | |
| ZMLhENaG0bYatdrKP+3H91lvK050pXwnO/R7fB/FSTouki4ciIx5OuLlnJZIxSzx | |
| PqGl0mkxImLNbGWoi6Lto0LYxqHN2iQtzlwTVmq9733zd3XfcXrZ3+LblHAgEt5G | |
| TfNxEKJ8soPLyWmwDH6HWCnjZ/aIQRBTIQ05uVeEoYxSh6wOai7ss/KveoSNBbYz | |
| gbdzoqI2Y8cgH2nbfgp3DSasaLZEdCSsIsK1u05CinE7k2qZ7KgKAUIcT/cR/grk | |
| C6VwsnDU0OUCideXcQ8WeHutqvgZH1JgKDbznoIzeQHJD238GEu+eKhRHcz8/jeG | |
| 94zkcgJOz3KbZGYMiTh277Fvj9zzvZsbMBCedV1BTg3TqgvdX4bdkhf5cH+7NtWO | |
| lrFj6UwAsGukBTAOxC0l/dnSmZhJ7Z1KmEWilro/gOrjtOxqRQutlIqG22TaqoPG |
| #!/bin/bash | |
| STTY=$(stty -g) | |
| stty -echo | |
| echo -e "connect <vpn server>/<path>\n<vpn user>" | |
| /usr/bin/security find-generic-password -wl vpnpass.extadmin | |
| oathtool --totp -b "$(/usr/bin/security find-generic-password -wl oathkey.extadmin)" | |
| echo -e "y\n" | |
| #stty "${STTY}" |
| -- Create a new generic password entry in Keychain Access called {vpnKeychainEntry} (the name in Keychain access must match that in line 10 below) with your password for the Cisco AnyConnect VPN server. | |
| -- e.g., /usr/bin/security add-generic-password -a joey -s vpnpass -l 'vpnpass.extadmin' -w` | |
| -- Create another one for the oath token (use the same label as found on line 13); enter the OATH tool token identifier twice | |
| -- e.g., /usr/bin/security add-generic-password -a joey -s vpnpass -l 'oathkey.extadmin' -w` | |
| -- 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. | |
| -- Open Security & Privacy System Preferences, go to Privacy, Accessibility. | |
| -- Enable the above .app so it can access Accessibility | |
| -- Copy and paste a nice icon on the generic Applescript icon (I used a copy of the default AnyConnect one) | |
| -- Add the new .app to ${HOME}/Applications with a shortcut to your Dock | |
| -- Enjoy the fast conn |
| open | |
| get State:/Network/Service/com.cisco.anyconnect/DNS | |
| d.remove ServerAddresses | |
| d.add ServerAddresses * 172.30.1.2 | |
| set State:/Network/Service/com.cisco.anyconnect/DNS | |
| quit |
I avoid Windows at all cost however someone in need asked for help on this topic. Changing to Natural Scroll in Windows for a mouse is a royal pain in the ass. It is trivial to fix for a track pad but not for a the scroll wheel of a mouse. You must do things the Mircosoft way. If you have a Linux VM on top of Windows fixing this can ve confusing.
HardwareDetailsHardware IDs