Script to automatically update A DNS entry on Cloudflare
curl
and jq
must be installed.
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: |
#!/usr/bin/env bash | |
# You must have cifs-tools installed | |
set -e | |
# Set variables here | |
SERVER_HOSTNAME="serverhostnamehere" | |
USERNAME="usernamehere" |
version: "3" | |
services: | |
gluetun: | |
image: qmcgaw/gluetun | |
container_name: gluetun | |
cap_add: | |
- NET_ADMIN | |
environment: | |
- VPN_SERVICE_PROVIDER=mullvad | |
- VPN_TYPE=wireguard |
# 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 |
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 |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.example.my_script</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Users/ericswpark/fix_mosh_server.sh</string> | |
</array> |
#!/usr/bin/env bash | |
set -e | |
VUETORRENT_REPO_NAME="VueTorrent/VueTorrent" | |
GITHUB_API_URL="https://api.github.com/repos" | |
GITHUB_URL="https://github.com" | |
GITHUB_VUETORRENT_API_URL="$GITHUB_API_URL/$VUETORRENT_REPO_NAME" | |
GITHUB_VUETORRENT_URL="$GITHUB_URL/$VUETORRENT_REPO_NAME" |
#!/usr/bin/env bash | |
# Script to back up Beat Saber files | |
# Why not use SideQuest? It doesn't handle permissions very well | |
# Better to always use vanilla adb | |
# This script assumes adb is available in your PATH | |
# What is backed up: |
Persistent | |
#b:: | |
{ | |
; Open Quick Actions window | |
Send("{LWin Down}a{LWin Up}") | |
; The quick action window takes a while to initialize and allow keyboard navigation | |
; Without the sleep timer you may end up on the wrong screen (or disabling WiFi) | |
; If your computer is slower, increase this value a bit more | |
Sleep(600) |