Skip to main content

Recently Updated Pages

404 page

HTML

A simple 404 page <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device...

Updated 2 weeks ago by Tony Pizzicato

Landing page

HTML

A simple landing page <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=de...

Updated 2 weeks ago by Tony Pizzicato

Murphy's Law

Bash

#!/bin/bash funny_bunny(){ cat << EOF |---------------| | sysrq-trigger | |---...

Updated 2 weeks ago by Tony Pizzicato

RSS Feed

Bookstack Additional functionality

Setting up Logical Theme System cd /var/www/bookstack/themes/custom mkdir templates touch in...

Updated 2 weeks ago by Tony Pizzicato

Opening links in a new window by default

Bookstack Additional functionality

Adding the following JavaScript to HTML Metadata <!-- Open links in a new tab --> <script type=...

Updated 2 weeks ago by Tony Pizzicato

Removing the old document versions

Bookstack Additional functionality

Setting up Logical Theme System mkdir /var/www/bookstack/themes/custom mkdir /var/www/bookstack...

Updated 2 weeks ago by Tony Pizzicato

Recycle bin auto cleanup

Bookstack Additional functionality

Setting up documents lifetime nano -w /var/www/bookstack/.env # Set a recycle bin item lifetime...

Updated 2 weeks ago by Tony Pizzicato

Version control

Bookstack Additional functionality

Setting up revision limit nano -w /var/www/bookstack/.env # Set the revision limit to 200 # De...

Updated 2 weeks ago by Tony Pizzicato

Enabling HTTPS

Bookstack Installation

It's assumed that you already have certificates signed by LetsEncrypt (more details here)Updating...

Updated 2 weeks ago by Tony Pizzicato

Wildcard certificate with updates over API

Let's Encrypt

Installing lego (ref link) cd /var/tmp curl -Ls https://api.github.com/repos/go-acme/lego/rel...

Updated 2 weeks ago by Tony Pizzicato

Configuring Apache

Bookstack Installation

Creating a configuration file for a virtual host touch /etc/apache2/sites-available/bookstack.c...

Updated 2 weeks ago by Tony Pizzicato

Installing BookStack

Bookstack Installation

Downloading CMS cd /var/www/ mkdir bookstack git clone https://github.com/BookStackApp/BookSta...

Updated 2 weeks ago by Tony Pizzicato

Creating database

Bookstack Installation

Dropping anonymous user and a default DB. Blocking remote root connections mariadb-secure-instal...

Updated 2 weeks ago by Tony Pizzicato

Installing dependencies

Bookstack Installation

According to the manual, we need the following PHP extensions gd, dom, iconv, mbstring, mysqlnd, ...

Updated 2 weeks ago by Tony Pizzicato

Operations

IPTABLES Fail2Ban

fail2ban-client status fail2ban-client status apache-modsecurity fail2ban-client set apache-mod...

Updated 2 weeks ago by Tony Pizzicato

Installation

IPTABLES Fail2Ban

Installing the package apt install fail2ban systemctl enable fail2ban Making the config file t...

Updated 2 weeks ago by Tony Pizzicato

Port Knocking

IPTABLES

Installing knockd apt install knockd systemctl enable knockd Making the config file to look ...

Updated 2 weeks ago by Tony Pizzicato

Base Config

IPTABLES

Creating a configuration file mkdir /etc/iptables touch /etc/iptables/rc.firewall chmod +x /et...

Updated 2 weeks ago by Tony Pizzicato

Logging

Debian Systemd

Creating a config file and setting things up (more details here) mkdir /etc/systemd/journald.con...

Updated 2 weeks ago by Tony Pizzicato

Client

Debian NTP

Setting up a timezone timedatectl list-timezones timedatectl set-timezone Pacific/Auckland Che...

Updated 2 weeks ago by Tony Pizzicato