Skip to content

Instantly share code, notes, and snippets.

@benuski
benuski / output.txt
Created February 13, 2024 17:40
sudo sysctl -a | grep -i ipv6
net.ipv6.anycast_src_echo_reply = 0
net.ipv6.auto_flowlabels = 1
net.ipv6.bindv6only = 0
net.ipv6.calipso_cache_bucket_size = 10
net.ipv6.calipso_cache_enable = 1
net.ipv6.conf.all.accept_dad = 0
net.ipv6.conf.all.accept_ra = 1
net.ipv6.conf.all.accept_ra_defrtr = 1
net.ipv6.conf.all.accept_ra_from_local = 0
net.ipv6.conf.all.accept_ra_min_hop_limit = 1
@benuski
benuski / compose.yml
Created January 31, 2024 15:50
changedetection.io and browserless v2 docker compose
version: '3.2'
services:
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io:latest
container_name: changedetection
hostname: changedetection
volumes:
- changedetection-data:/datastore
environment:
@benuski
benuski / jail.local
Created September 4, 2017 13:55
SSH jail for fail2ban to ban IPs for one day
# Ban hosts for one day:
bantime = 86400
# Override /etc/fail2ban/jail.d/00-firewalld.conf:
banaction = iptables-multiport
[sshd]
enabled = true
#To tune Apache to use less threads (and therefore less memory) on low memory servers, such as a cheap VPS or a Raspberry Pi
<IfModule mpm_prefork_module>
StartServers 1
MinSpareServers 1
MaxSpareServers 3
MaxClients 10
MaxRequestsPerChild 3000
</IfModule>
#Or if you have something that supports the worker module
@benuski
benuski / firefox-nightly.desktop
Last active October 4, 2017 22:35 — forked from caugner/nightly.desktop
A simple application menu entry for Mozilla Firefox Nightly, to be put in /usr/share/applications
[Desktop Entry]
Version=1.0
Name=Nightly
Exec=/opt/firefox/firefox %u
Icon=/opt/firefox/browser/icons/mozicon128.png
Terminal=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Categories=Network;WebBrowser;
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName yoursitename.org
ServerAlias www.yoursitename.org
DocumentRoot /var/www/yoursitename.org
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>