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 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 .bashrc
#
# ~/.bashrc
#
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
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 mnt-device-export.mount
[Unit]
Description=Mount Export at boot
Requires=network-online.target
After=network-online.target
[Mount]
What=device.home.lan:/srv/nfs4/export
Where=/mnt/device/export
Options=noauto,x-systemd.automount,noatime,vers=4,rsize=8192,wsize=8192
Type=nfs
View dvb_core.conf
options dvb_core dvb_powerdown_on_sleep=0 dvb_shutdown_timeout=0 dvb_demux_tscheck=0 dvb_demux_speedcheck=0
View locale.conf
LANG=en_US.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_COLLATE=nl_NL.UTF-8
LC_CTYPE=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_NUMERIC=nl_NL.UTF-8
View smb.conf
[global]
workgroup = WORKGROUP
server string = %h Samba Server
wins support = no
dns proxy = no
map to guest = bad user
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
View 98-smargo.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="video", MODE="0660", SYMLINK+="smargo"
View qemu-x64-win10-qxl.sh
#!/bin/sh
qemu-system-x86_64 -enable-kvm -machine q35,accel=kvm -cpu host -smp 2,cores=2 -m 8G -boot menu=on \
-drive id=disk,file=/mnt/hdd1/Images/win10_x64,if=none,format=raw \
-device intel-iommu \
-device ich9-ahci,id=ahci \
-device ide-drive,drive=disk,bus=ahci.0 \
-netdev user,smb=/home/archie,id=vmnic -device virtio-net,netdev=vmnic \
-vga qxl \
-spice unix,addr=/tmp/vm_spice.socket,disable-ticketing \
-usbdevice tablet \