I hereby claim:
- I am chazlarson on github.
- I am chazlarson (https://keybase.io/chazlarson) on keybase.
- I have a public key whose fingerprint is AA27 0396 5492 E691 61D1 8459 FAD7 5731 6B60 5D53
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env expect | |
| # Simple demonstration of automated EncFS creation using the expect program. | |
| # EncFS: an Encrypted Filesystem for FUSE. https://vgough.github.io/encfs/ | |
| if {[llength $argv] < 2} { | |
| send_user "Usage: auto_encfs_creation.exp rootDir mountPoint\n" | |
| exit 1 | |
| } |
| #!/bin/bash | |
| COUNTER=1 | |
| SOURCE="/files/to/upload" | |
| DESTINATION="remote:path" | |
| JSON_LOC="/opt/sa-json" | |
| while [ $COUNTER -lt 100 ]; do | |
| echo Using service account sa-$COUNTER | |
| /usr/bin/rclone copy -v --delete-excluded \ | |
| --fast-list --checkers=32 --transfers=16 --max-transfer 500G \ | |
| --stats 5s --drive-service-account-file=$JSON_LOC/sa-$COUNTER.json \ |
| #!/bin/bash | |
| COUNTER=1 | |
| SOURCE="remote:path" | |
| DESTINATION="remote:path" | |
| JSON_LOC="/opt/sa-json" | |
| while [ $COUNTER -lt 100 ]; do | |
| echo Using service account sa-$COUNTER | |
| /usr/bin/rclone sync -v --delete-excluded \ | |
| --fast-list --checkers=32 --transfers=16 --max-transfer 500G \ | |
| --stats 5s --drive-service-account-file=$JSON_LOC/sa-$COUNTER.json \ |
| #!/usr/bin/env bash | |
| # | |
| # Bootstrap script for setting up a new OSX machine | |
| # | |
| # This should be idempotent so it can be run multiple times. | |
| # | |
| # Some apps don't have a cask and so still need to be installed by hand. These | |
| # include: | |
| # | |
| # - Twitter (app store) |
| # FILE - /opt/nginx-proxy/vhost.d/app.domain.tld_location e.g sonarr.cloubox.com_location | |
| auth_request /auth-2; | |
| # optional failsafe basic auth | |
| satisfy any; | |
| auth_basic "Failsafe Authentication"; | |
| auth_basic_user_file /path/to/htpasswd; | |
| ## Full group list |
| #!/bin/sh | |
| # homebrew | |
| echo "Checking homebrew packages..." | |
| brew update > /dev/null; | |
| new_packages=$(brew outdated --quiet) | |
| num_packages=$(echo $new_packages | wc -w) | |
| if [ $num_packages -gt 0 ]; then | |
| echo "New package updates available:" |
| from __future__ import print_function | |
| import uuid | |
| from apiclient import discovery | |
| from httplib2 import Http | |
| from oauth2client import file, client, tools | |
| # ############################################################## | |
| # You need to install the Google API stuff | |
| # There's a link on the page where I cribbed this: |
| #!/bin/bash | |
| # Assumptions: | |
| # 1. You have created a google project as described here: https://docs.saltbox.dev/reference/google-project-setup/ | |
| # 2. You have the credential JSON to hand | |
| # 3. You have created a google group as described here: https://docs.saltbox.dev/reference/google-group-setup/ | |
| # 4. You have that group address to hand | |
| # 5. You have rclone installed | |
| # 6. You are running python 3.8 and have run sudo apt install python3.8-venv -y | |
| # Probably other python3 works, the assumption is that I can create a venv |
| #!/usr/bin/env ruby | |
| # At least for movies, it looks like it copies the 'selected' stuff into the | |
| # _stored/ folder. It also seems to use the _combined/ folder for access. | |
| # so, I shoud be able to delete anything that's not those two. | |
| # And after that, in the _combined folder, I can/should delete any broken links | |
| # and remove them from <art> and <posters> in Info.xml. | |
| # remove <reviews> from Info.xml too, since it seems to be unused. | |
| # As far as I can tell, extras.xml can just be deleted? | |
| # Same for Artists |