Contact Cancer Tips


Ubuntu

Stop SUDO nag

sudo visudo

{username} ALL=(ALL) NOPASSWD: ALL

Change modified time: find . -exec touch -d "12 hours ago" {} +

Find all of certian type: find . -type f -name "*.mp4"

Delete all of type recursively: find . -name "*.whatever" -type f -delete

Plex

sudo service plexmediaserver stop/start/restart

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server

cd ~/NVE/plexdata && sudo tar -h --exclude Logs/* --exclude Application\ Support/Plex\ Media\ Server/Metadata/* --exclude Application\ Support/Plex\ Media\ Server/Media/* --exclude Application\ Support/Plex\ Media\ Server/Logs/* --exclude Application\ Support/Plex\ Media\ Server/Crash\ Reports/* --exclude Application\ Support/Plex\ Media\ Server/Cache/* -zcvf "Library-`date +%b-%d-%y`.tar.gz" ~/NVE/plexdata/Library/

Rclone

Bandwith Limit: --bwlimit=10M

Limit # of Transfers: --transfers=1


FFMPEG & HandbrakeCLI

find . -type f -mmin +180 -name '*.mpg' | while read f; do comcut "$f" "${f%.mpg}.mp4"; rm "$f"; done


Squid

 Install: sudo apt-get install squid
 
Conf Location: sudo nano /etc/squid/squid.conf
Add ACL: Should be around line 1187 acl client src IP.IP.IP.IP # Home IP http_access allow client

Plex with Cloudflare using socat

		
[Unit]
Description=Proxy 8443 to 32400 internally but not externally
After=syslog.target local-fs.target network.target
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/bin/socat tcp-listen:8443,reuseaddr,fork tcp:localhost:32400
ExecStop=
Restart=always
RestartSec=5
[Install]
WantedBy=default.target
		
	

Fix lang

		
tv

cd ..

rclone move -P google:Media/TVpartial TEST --include *.mp4 --max-transfer 500G

bash test.bash

rclone move -P TEST google:Media/TVpartial --bwlimit=80M
		
	

filebot -rename -r /home/main/pdmount/Media/ID --db thetvdb -non-strict --format "/home/main/pdmount/Media/ID/{n}/{'Season '+s}/{n}.{s00e00}.{vf}.{vc}.{ac}"


I initially built this with reactjs. Then I realized html and css would be sufficient. (8KB)
1959