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
# Create pull request for public repo (already forked) | |
git checkout -b new_branch | |
git remote add upstream URL_OF_FORK | |
# Make changes to FILE | |
git add FILE | |
git commit -S -m "Adding a FILE to new_branch" | |
git push -u origin new_branch |
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
# Create a new repository on the command line | |
touch README.md | |
git init | |
git add README.md | |
git commit -m "Inital commit" | |
git remote add origin URL | |
git push -u -f origin master / main |
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
ext_if = "vtnet0" # Our external interface. | |
vpn_if = "wg0" # Wireguard interface | |
gsd_if = "wg-gsd" # Wireguard GSD interface | |
# TCP ports allowed for external / public interface. | |
TCP_EXT_OK = "{ domain-s, http, https, docsrv }" | |
UDP_EXT_OK = "{ domain-s, wireguard }" | |
# Stateful TCP options. | |
TCP_STATE = "flags S/FSRA keep state" |
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
# Nextcloud | |
# [logfile name] [owner-group] [mode] [count] [size] [when] [flags] [path to pid file] [signal] | |
/var/log/nextcloud/nextcloud.log www:www 640 9 * $D00 BCEJN | |
# Modsecurity | |
# Workaround for logrotation on modsecurity to restart nginx - otherwise new logs are not written | |
# https://github.com/SpiderLabs/ModSecurity-nginx/issues/121 | |
# | |
# [logfile name] [owner-group] [mode] [count] [size] [when] [flags] [path to pid file] [signal] | |
/var/log/modsecurity/modsec_audit.json www:www 640 9 * $D00 BCEJR /usr/local/sbin/nginx.restart |
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
device pf | |
device pflog | |
device pfsync | |
options ALTQ | |
options ALTQ_CBQ # Class Bases Queuing (CBQ) | |
options ALTQ_RED # Random Early Detection (RED) | |
options ALTQ_RIO # RED In/Out | |
options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) | |
options ALTQ_PRIQ # Priority Queuing (PRIQ) |
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
# Misc | |
dumpdev="NO" | |
cloudinit_enable="YES" | |
swapfile="/usr/swap0" | |
dbus_enable="YES" | |
# Network Stuff | |
hostname=HOSTNAME.DOMAIN.TLD | |
defaultrouter=X.X.X.X | |
ifconfig_vtnet0=X.X.X.X |
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 | |
# Check if Wireguard to Fritz!Box is active | |
if ping -c 1 fritzbox.local > /dev/null | |
then export RCLONE_SERVER=fritz.wireguard # Access via Wireguard | |
else export RCLONE_SERVER=fritz.extern # Access via FTP/S externaly | |
fi |
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
# Colorize terminal for micro editor | |
TERM=xterm-256color | |
export TERM | |
# Some generic alias | |
alias su="su -l" | |
alias show.top="top -I -z -t -a -o cpu" | |
alias gh="history|grep" | |
# even more generic |
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 | |
/usr/sbin/service nginx restart>/dev/null 2>&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
#!/bin/sh - | |
# | |
# $FreeBSD$ | |
# | |
# Put into /usr/local/etc/periodic/daily | |
# If there is a global system configuration file, suck it in. | |
# | |
if [ -r /etc/defaults/periodic.conf ] | |
then |
NewerOlder