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
# Base paths | |
BASE_PATH=CHANGE-ME # Base configuration directory (Different from Data_Path lcoation) | |
DATA_PATH=CHANGE-ME # Base data directory (Not /home) | |
MEDIA_PATH=${DATA_PATH}/media # Media storage location | |
DOWNLOADS_PATH=${DATA_PATH}/torrents # Download directory for qBittorrent (Different from Media_path location) | |
# Volume paths for different services | |
GLUETUN_VOLUME=${BASE_PATH}/gluetun | |
QBITTORRENT_CONFIG_VOLUME=${BASE_PATH}/qbittorrent/config |
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
This script creates secure password entries using the pass password manager. It sets a directory for password storage, prompts the user for a title, URL, username, and email, and optionally generates a secure password. The title is converted to camel case, and the user can choose an email from predefined options. Finally, it compiles the provided information and stores it as a new password entry in the pass system. | |
Ensure all CHANGE-ME placeholders are replaced with actual values before use. | |
#!/bin/bash | |
# Function to convert a string to camel case | |
to_camel_case() { | |
echo "$1" | awk -F'[[:space:]]' '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) tolower(substr($i,2))}1' OFS="" | |
} |
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
Use the script below with a CSV to import Apple Keychain Passwords into the Unix Password Store (pass). The script imports entries with the fields Title, URL, Username, and Password. Other field headers should be removed from the CSV. Customize the CHANGE-ME placeholders to match your specific setup. The script checks for correct arguments and file existence, sets the base directory to CHANGE-ME, reads the CSV line by line, handles missing passwords, and creates entries in the specified directory within pass. You can modify the script to import additional fields as currently only Title, URL, Username, and Password will be imported. | |
#!/bin/bash | |
# Check if the correct number of arguments is provided | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 path_to_csv_file" | |
exit 1 | |
fi |