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 | |
| # AWS SSO Login Script | |
| # Logs into multiple AWS profiles using AWS SSO | |
| set -e | |
| SCRIPT_NAME="aws-login" | |
| AWS_CLI_CMD="aws" |
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
| # to use aws-sso with zsh, add the following alias to .zshrc | |
| alias aws-sso='f() { ~/.local/bin/aws-sso "$@" -- exec zsh; unset -f f; }; f' |
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 | |
| SCRIPT_DIR=$(dirname -- $0) | |
| APPLICATIONS_DIR="${HOME}/.local/share/applications/" | |
| DEFAULT_BROWSER_DESKTOP="${APPLICATIONS_DIR}/default-browser-selector.desktop" | |
| if [ ! "$(command -v zenity)" ]; then | |
| sudo apt-get install zenity | |
| fi |
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 | |
| readarray -t CARDS < <(pactl list short cards | grep "bluez" | awk '{print $2}') | |
| if [[ ${#CARDS[@]} > 1 ]]; then | |
| echo "Please select the card from the list bellow:" | |
| for i in "${!CARDS[@]}"; do | |
| printf " %s: %s\n" "$i" "${CARDS[$i]}" | |
| done | |
| read opt |
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 python3 | |
| # -*- coding: utf-8 -*- | |
| """XPlane-xranrd.ipynb | |
| Automatically generated by Colaboratory. | |
| Original file is located at | |
| https://colab.research.google.com/drive/1kzmAZTVEkIjbxRJtK9Fc4YBJiW7HFgGU | |
| # Introduction |