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 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 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 \
View hts.php
<?php
$url = 'http://username:password@tvheadend-address/ip:9981/stream/channelnumber/%d.m4v';
// Personal ZiggoNL channels
$array = [
1 => 'NPO1 HD',
2 => 'NPO2 HD',
3 => 'NPO3 HD',
6 => 'SBS6 HD',
7 => 'RTL7 HD',
8 => 'Veronica HD',
View 98-smargo.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="video", MODE="0660", SYMLINK+="smargo"
View input.conf
AXIS_UP seek 60
AXIS_DOWN seek -60
CLOSE_WIN quit-watch-later
quit-watch-later ctrl+q
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 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 .bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '