View concat.sh
#!/bin/sh
rm -rf .list.txt; \
for f in *; do echo "file '$f'" >> .list.txt; done && \
cat .list.txt && ffmpeg -f concat -safe 0 -i .list.txt -threads 12 -c:v copy -scodec copy out.mp4
View backup.sh
#!/bin/sh
# Remote Settings
export SSH_HOST='root@domain.tld'
export SSH_REMOTE_PATH='/'
export SSH_LOCAL_PATH='/home/user/Backups/tmp/vps1/source'
export SSH_ARGS='-C -o ro -o IdentityFile=/home/user/.ssh/id_rsa'
# Destination Settings
export DEST_PATH='/home/user/Backups/vps1'
View certbot.sh
# certbot certonly --manual -d domain.tld -d *.domain.tld -d domain2.tld -d *.domain2.tld --agree-tos --manual-public-ip-logging-ok --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory
View transcode.sh
#!/bin/sh
for basename in $PWD/*; do
ffmpeg -threads 12 \
-init_hw_device vaapi=fallback:/dev/dri/renderD128 \
-hwaccel vaapi \
-hwaccel_output_format vaapi \
-hwaccel_device fallback \
-i "${basename}" \
-filter_hw_device fallback \
View nginx.conf
user http;
worker_processes 1;
events {
worker_connections 1024;
multi_accept on;
use epoll;
}
http {
View retrieve.py
import libtorrent as lt
import time
import json
def write_file(filename, contents):
file = open(filename, 'w')
file.write(contents)
file.close()
def add_torrent(session, filename, options):
View INSTALL
Install the `mod_fcgid` and `php-cgi` packages.
# mkdir /srv/http/fcgid-bin
# ln -s /usr/bin/php-cgi /srv/http/fcgid-bin/php-fcgid-wrapper
# mkdir /srv/http/fcgid55-bin
# ln -s /usr/bin/php55-cgi /srv/http/fcgid55-bin/php-fcgid-wrapper
Restart `httpd.service`
View generator.php
<?php
/*
* Your settings here
*/
define('DB_DSN', 'mysql:host=localhost;dbname=mydb;charset=UTF8');
define('DB_USER', 'myuser');
define('DB_PASS', 'mypass');
define('DB_TABLE', 'mytable');
define('DB_OPTIONS', [
View dvb_usb.conf
options dvb-usb disable_rc_polling=1
View 98-smargo.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="video", MODE="0660", SYMLINK+="smargo"