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 | |
# Logs into Vault using an assumed AWS Role | |
# context: https://github.com/hashicorp/vault/issues/5767 | |
# based on: https://gist.githubusercontent.com/Westixy/bc70ee782fe759094bf5c1c65c248f6c/raw/34ee1b3c17beddb5badaf4ad4d32afef208bfd84/vault-aws.sh | |
set -e | |
THIS=`basename "${0}"` | |
AWS_ROLE_ARN="$1" |
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 python3 | |
# Generates RetroArch-compatible playlists from directories containing zipped roms | |
# Copy this script into ~/.config/retroarch and Set ROM_DIR below to the directory containing the system subdirectories with roms | |
# These system subdirectories must be named the same way as the RetroArch's playlist names i.e. "Vendor - Console_Model" | |
import glob, json, os | |
from zipfile import ZipFile | |
BASE_DIR = os.path.dirname(os.path.realpath(__file__)) | |
PL_DIR = f'{BASE_DIR}/playlists' |
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
module vault-otp 1.0; | |
require { | |
type var_log_t; | |
type sshd_t; | |
type http_port_t; | |
class file open; | |
class file create; | |
class tcp_socket name_connect; | |
} |