View gitlab.conf
upstream gitlab {
server localhost:8080 fail_timeout=0;
}
server {
#listen 80;
listen 443 ssl;
keepalive_timeout 70;
server_name example.com
server_tokens off;
View qemu_win10x64.sh
#!/bin/sh
qemu-system-x86_64 -enable-kvm -machine q35,accel=kvm \
-cpu host \
-m 4G \
-drive id=disk,file=/home/archie/Documents/Images/win10x64.img,if=none \
-drive file=/home/archie/Downloads/Win10_1709_English_x64.iso,index=3,media=cdrom \
-drive file=/home/archie/Downloads/drivers.iso,index=4,media=cdrom \
-device intel-iommu \
-device ich9-ahci,id=ahci \
-device ide-drive,drive=disk,bus=ahci.0 \
View 98-smargo.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="video", MODE="0660", SYMLINK+="smargo"
View dvb_usb.conf
options dvb-usb disable_rc_polling=1
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 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 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 nginx.conf
user http;
worker_processes 1;
events {
worker_connections 1024;
multi_accept on;
use epoll;
}
http {
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 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