Skip to content

Instantly share code, notes, and snippets.

Ben Bromley benuski

Block or report user

Report or block benuski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@benuski
benuski / jail.local
Created Sep 4, 2017
SSH jail for fail2ban to ban IPs for one day
View jail.local
# Ban hosts for one day:
bantime = 86400
# Override /etc/fail2ban/jail.d/00-firewalld.conf:
banaction = iptables-multiport
[sshd]
enabled = true
View mpm.conf
#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 Oct 4, 2017 — forked from caugner/nightly.desktop
A simple application menu entry for Mozilla Firefox Nightly, to be put in /usr/share/applications
View firefox-nightly.desktop
[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;
View Wordpress sites-enabled example
<VirtualHost *:80>
ServerAdmin your@emailaddress.org
ServerName yoursitename.org
ServerAlias www.yoursitename.org
DocumentRoot /var/www/yoursitename.org
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
You can’t perform that action at this time.