Index ¦ Archives ¦ Atom

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 ...


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 ...


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 ...

pip changing from pep8 to pycodestyle

I recently updated one of the packages in Atom that was called linter-pep8 to version 2.0 which was renamed to linter-pycodestyle. This is because PEP8 the package was renamed to pycodestyle to reduse confusion between the package and the PEP8 the specification.

However after I opened Atom I got ...


Failing Loudly

There is a concept in IT called 'failing loudly' as opposed to 'failing silently'. The idea is when something goes wrong it should be obvious and generally everything should come to a halt instead of trying to carry on with errors.

An example of this is running a REST API ...

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.