Script to automatically update A DNS entry on Cloudflare
curl and jq must be installed.
| import os | |
| import time | |
| import subprocess | |
| import argparse | |
| # Set the path to the directory containing the movies | |
| directory = 'Movies/' | |
| # Name to append at the end of optimized files |
| # Switch to extras directory | |
| cd /boot/extras | |
| # Download all packages required | |
| wget https://slack.conraid.net/repository/slackware64-current/mosh/mosh-1.4.0-x86_64-4cf.txz | |
| https://slack.conraid.net/repository/slackware64-current/protobuf/protobuf-21.12-x86_64-1cf.txz | |
| # Install all downloaded packages | |
| installpkg mosh-1.4.0-x86_64-4cf.txz | |
| installpkg protobuf-21.12-x86_64-1cf.txz |
| version: "3" | |
| services: | |
| gluetun: | |
| image: qmcgaw/gluetun | |
| container_name: gluetun | |
| cap_add: | |
| - NET_ADMIN | |
| environment: | |
| - VPN_SERVICE_PROVIDER=mullvad | |
| - VPN_TYPE=wireguard |
| #!/usr/bin/env bash | |
| # You must have cifs-tools installed | |
| set -e | |
| # Set variables here | |
| SERVER_HOSTNAME="serverhostnamehere" | |
| USERNAME="usernamehere" |
| import json | |
| accounts = [] | |
| print("Reading exported JSON...") | |
| with open("bitwarden-export.json", "r", encoding="utf8") as export_file: | |
| vault = json.load(export_file) | |
| vault = vault["items"] | |
| for item in vault: |