Index ¦ Archives ¦ Atom

One hundred prisoners and a light bulb simulation

This is a little off my usual topic of IT Security but it's something I've been thinking about a bit lately. I recently came across the "One hundred prisoners and a light bulb" riddle. It was posed as:

A group of 100 prisoners, all together in the prison dining area …


Using the new(ish) Nextcloud updater

I first started playing with ownCloud back in early 2012 with version 3, and started using it seriously in mid 2014 as my main tool for syncing my Calendar, Contacts and files having migrated away from Google's Calendar/Contacts/Drive.

But one of my biggest complaints was the update mechanism …


Using ssh config to save settings and make your life easier

SSH is an amazing tool, I use it all the time and not just for logging into remote computers, but also to create tunnels, copy files and access git repositories.

But I don't want to have to remember fidily commands something like ssh I2P_Router is so much nicer than something …


Simple postgres basics

This is another one of those things I've done all this several times before, but need to keep looking up the documentation.

To login to PostgreSQL after a fresh installation1 you need to change to the postgres user and run psql (no password needed, it uses Peer Authentication)

sudo …

My IP Tables script example

Below is an example of the IP Tables script I use on many of my servers. The names and IP addresses have been changed to reserved addresses and obviously it needs to be tweaked each time for relevent rules.

#!/bin/bash

# This script is symlinked to /etc/network/if-pre-up.d …

Creative Commons License
Content on this site is licensed under a Creative Commons Attribution 4.0 International License.
Built using Pelican. Based on a theme by Giulio Fidente on github.