Skip to content

Instantly share code, notes, and snippets.

@werrpy
werrpy / .bashrc
Last active October 8, 2023 11:02
rtorrent / deluge symlink and auto rename for plex and rclone upload
alias filter_filebot='cat ~/filebot/data/logs/filebot_auto_rclone.log | grep -i "move" | uniq > ~/filebot/data/logs/filebot_auto_rclone_filtered.log && cat ~/filebot/data/logs/filebot_auto_rclone_filtered.log'
@werrpy
werrpy / rgdm-mount.service
Created March 24, 2019 01:13
gdrive plex mount systemd
[Unit]
Description=rclone google drive media mount
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone --config /root/gdrive/config/rclone.conf mount media-remote-secret: /mnt/gdrive-media --allow-non-empty --allow-other --read-only --dir-cache-time 48h --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit 2G --tpslimit 5 --tpslimit-burst 5
ExecStop=/bin/fusermount -quz /mnt/gdrive-media
Restart=on-abort
RestartSec=5
@werrpy
werrpy / crontab -e
Created March 19, 2019 22:54
gdrive plex mount cron
*/5 * * * * /home/USERNAME/bin/gdrive-mount-media.sh
@The-OMG
The-OMG / create_service.sh
Last active July 27, 2019 17:35
Small script for creating Google Cloud Service Accounts
#!/bin/bash
# requires gcloud command line tools
# go to https://cloud.google.com/sdk/docs/quickstarts to get them OR you can install with Node (npm) "npm install --save -g @google-cloud/cloud-sdk"
# max 100 service accounts per project
# run "gcloud init --console-only" first and select a project; run it again to select another project to create more service accounts
# Location of where service account keys will be created
KEYS_DIR=keys
@HDVinnie
HDVinnie / horror.css
Last active September 26, 2018 00:45
#hoeapp-wrapper, #main-content, .inner-content {
background-color: #181818;
}
.hoe-right-header[hoe-color-type="header-bg5"] {
background: #1f1f1f;
}
#hoeapp-container[hoe-color-type="lpanel-bg5"].hoe-minimized-lpanel #hoe-left-panel {
background: #1f1f1f;
@werrpy
werrpy / rclone.conf
Last active May 19, 2021 21:27
rclone Unlimited Cloud Storage Script (Google Drive)
[media-local-secret]
type = crypt
remote = secret/media
filename_encryption = standard
password =
password2 =
[media-remote-secret]
type = crypt
remote = gdrive:path/to/media
@xf1
xf1 / remux
Created April 29, 2014 04:41
Remuxing with eac3to
Remuxing
Why Remux Blu-rays?
-You use MPC-HC (or similar DShow players) and standard filters for playback. You can also use better quality renderers like Haali, EVR and madVR.
-You get the ease of playback of a re-encode without the quality loss. A double click off the .mkv will start the movie - no annoying warnings, loading screens, previews and setup menus.
-You don't have to deal with horribly bloated, unstable and expensive PowerDVD or Arcsoft playback software.
-You don't have to mess with ISO creation, correct BD folder structure, UDF and SPTD drivers, and image mounting every time you want to watch a movie.
-You never have to worry about the region code setting of a disc.
-You never have to worry about HDCP or PAP content protection.
-You never have to worry about your software player downsampling your audio - get full bit-depth and frequency resolution, 24bit/96kHz or higher, not 16/48.