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-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 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 .bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
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 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