simple uploader script for deluge, assign this script to be called on torrent complete and it will walk a directory and upload it to your google drive
install dependencies:
npm install googleapis async winston lodash mime twilio| #!/bin/bash | |
| # Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04 | |
| # Inspired from https://gist.github.com/faleev/3435377 | |
| # Remove any existing packages: | |
| sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
| # Get the dependencies (Ubuntu Server or headless users): | |
| sudo apt-get update |
| #!/bin/bash | |
| # Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 14.04 | |
| # Copyright @ 2014 Shuen-Huei (Drake) Guan <[email protected]> | |
| # References: | |
| # * https://gist.github.com/xdamman/e4f713c8cd1a389a5917 | |
| # * https://blog.dlasley.net/2013/05/install-ffmpeg-from-source/ | |
| # * http://fermat-little-theorem-blog.logdown.com/posts/203069-solved-when-building-gpac-suffer-usr-local-lib-libswscalea-error-adding-symbols-bad-value |
| #!/bin/sh | |
| DOWNLOAD_DIR="${HOME}/ddl" | |
| CONFIG_DIR="${HOME}/.aria2" | |
| RPC_TOKEN="lol" | |
| RPC_PORT="6800" | |
| sudo apt-get update | |
| sudo apt-get install -y aria2 ca-certificates |
| # https://download.owncloud.org/download/repositories/stable/owncloud/ | |
| wget -nv https://download.owncloud.org/download/repositories/stable/Debian_8.0/Release.key -O - | apt-key add - | |
| echo "deb http://download.owncloud.org/download/repositories/stable/Debian_8.0/ /" >> /etc/apt/sources.list.d/owncloud.list | |
| apt-get update | |
| apt-get install owncloud |
| #!/usr/bin/env python3 | |
| import sys, os, socket | |
| from socketserver import ThreadingMixIn | |
| from http.server import SimpleHTTPRequestHandler, HTTPServer | |
| HOST = socket.gethostname() | |
| class ThreadingSimpleServer(ThreadingMixIn, HTTPServer): | |
| pass |
| ## | |
| ## Arch Linux repository mirrorlist | |
| ## Filtered by mirror score from mirror status page | |
| ## Generated on 2017-05-31 | |
| ## | |
| ## Japan | |
| Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch | |
| ## Japan | |
| Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch |
| [Unit] | |
| Description=cloud-torrent | |
| [Service] | |
| WorkingDirectory=/root/ | |
| ExecStart=/usr/local/bin/cloud-torrent --port 81 --config-path /root/cloud-torrent.json --title "Cloud" | |
| Restart=always | |
| RestartSec=3 | |
| [Install] |
| #!/bin/bash | |
| echo "Installing..." | |
| curl https://i.jpillora.com/cloud-torrent! | bash | |
| wget -O /etc/systemd/system/cloud-torrent.service https://gist.github.com/maulvi/f1df32bd73dcb709709c7afd30247a06/raw/4af916288313cf9ab24558986b4fee67239aa09a/cloud-torrent.service | |
| systemctl enable cloud-torrent | |
| systemctl start cloud-torrent | |
| echo "cloud torrent running" |
| BEGIN | |
| DECLARE | |
| email_count INT; | |
| SELECT COUNT(*) | |
| INTO email_count | |
| FROM employees | |
| WHERE LCASE() | |
| IF email_count > 0 | |
| THEN | |
| SET NEW.email = CONCAT_WS(NEW.lastName, LEFT(NEW.firstName, 1), email_count, '@classicmodelcars.com'); |