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 example.php
<?php
// Please use better solutions (see Slim3 Framework), check CSRF/Xhr, use Except, etc.
// This is only an example!
if ($_POST)
$v = new Valitron\Validator($_POST);
$v->rule('required', title');
//$v->rule..
if (!$v->validate())
exit(json_encode(array('error' => $v->errors())));
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 form.html
<form id="myForm">
<div class="form-group">
<label for="title">Title</label>
<input type="text" name="title" class="form-control" id="title" placeholder="Title">
</div>
<div class="form-group">
<label for="description">Description</label>
<textarea id="description" name="description" class="form-control" rows="3"></textarea>
</div>
</form>
View 98-smargo.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="video", MODE="0660", SYMLINK+="smargo"
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 dvb_core.conf
options dvb_core dvb_powerdown_on_sleep=0 dvb_shutdown_timeout=0 dvb_demux_tscheck=0 dvb_demux_speedcheck=0
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 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`