This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ipfw -q -f flush | |
# __________ | |
# | | | |
# | rpi | | |
# |__________| | |
# ue0 | |
# | 192.168.1.100 | |
# 192.168.1.0/24 | | |
# | 192.168.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local. IN SOA ns1.local. admin.local. ( | |
2006051501 ; Serial | |
10800 ; Refresh | |
3600 ; Retry | |
604800 ; Expire | |
300 ; Negative Response TTL | |
) | |
; DNS Servers | |
IN NS ns1.local. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/zsh | |
# ./cert-gen.zsh key.pem req.pem certificate.pem | |
keyFile=$1; | |
reqFile=$2; | |
crtFile=$3; | |
# generate private key | |
# openssl genrsa -out $keyFile 2048 | |
# generate certificate request | |
# openssl req -new -sha256 -key $keyFile -out $reqFile -config openssl.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
F9::Suspend | |
f:: | |
Loop | |
{ | |
GetKeyState, var, f, P ; | |
If var = U | |
Break | |
Send, {a down} | |
Sleep, 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hint.hdac.1.cad0.nid20.config="as=1 seq=1 device=Speaker" | |
hint.hdac.1.cad0.nid27.config="as=1 seq=15 device=Headphones" | |
hint.hdaa.4.nid19.config="as=1 seq=1 device=Speaker" | |
hint.hdaa.4.nid17.config="as=1 seq=15 device=Headphones" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bootstrap": true, | |
"bootstrap_expect": 1, | |
"data_dir": "/var/db/consul", | |
"node_name": "main-node", | |
"server": true, | |
"ui": true, | |
"bind_addr": "192.168.0.10" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ISP1_IF="tun0" | |
ISP2_IF="vr1" | |
LAN_IF="vr0" | |
REDIRECT_PORTS="redirect_port tcp 127.0.0.1:8088 80 | |
redirect_port tcp 192.168.0.3:443 443 | |
redirect_port tcp 192.168.0.4:25 25 | |
redirect_port tcp 192.168.0.4:587 587 | |
redirect_port tcp 192.168.0.4:465 465 | |
redirect_port tcp 192.168.0.4:143 143 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gpart create -s GPT md0 | |
gpart bootcode -b /boot/pmbr md0 | |
gpart add -s 512K -t freebsd-boot -a 4k md0 | |
gpart bootcode -p /boot/gptzfsboot -i 1 md0 | |
gpart add -b 1024K -s 2G -t freebsd-swap -a 4k md0 | |
gpart add -t freebsd-zfs -s 110G -a 4k -l zfs3 md0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test { | |
host.hostname = "${name}"; | |
vnet=new; | |
vnet.interface=epair0b; | |
path ="/usr/jail/${name}"; | |
mount.devfs; | |
allow.raw_sockets; | |
devfs_ruleset=4; | |
exec.prestart = "ifconfig epair0 create up; ifconfig bridge0 addm epair0a"; | |
exec.start = "/bin/sh /etc/rc"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[devfsrules_jail=4] | |
add include $devfsrules_hide_all | |
add include $devfsrules_unhide_basic | |
add include $devfsrules_unhide_login | |
add path zfs unhide | |
add path 'bpf*' unhide | |
[devfsrules_jail=5] | |
add include $devfsrules_hide_all |
OlderNewer