Ubuntu 16.04 - Install GPG Extension for PHP 7

Below is a script you can run to install the GPG extension for the PHP 7.0 CLI on Ubuntu 16.04. It may work on other distributions and versions of PHP, but I have not tested that. Related Posts Debian 8 - Install GPG Extension for PHP 5.6…

Read this article

Extremely Defensive PHP

Below is a talk from Marco (Ocramius) on extremely defensive PHP. Marco works at a company called Roave (software consultancy), and is an active contributor in th Zend Framework and Doctrine teams. He conveys a lot of great points that I think we could all benefit from. Introduction to speaker…

Read this article

Ubuntu 16.04 - Install Yarn Package Manager

The easiest way to install yearn is to use the following prog-exec command. prog-exec "34/1" "c6a9ccef59c818e546fda89456bfe73f3a363f2ee17798411b067b0306f3ad75" ... or you can copy, paste, and execute the following script: curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo…

Read this article

Duplicity - Backing up to A Remote Computer

This tutorial will show you how to back up your files to a remote computer in an encrypted format using duplicity. Steps First, generate a gpg key if you don't have one already that you wish to use. gpg --gen-key I would go with the the default options, a 2048…

Read this article

Install Duplicity From PPA

A short snippet to install duplicity from the PPA on your servers. sudo apt install software-properties-common python-software-properties -y sudo apt-add-repository ppa:duplicity-team/ppa -y sudo apt install duplicity -y References Launchpad - Duplicity…

Read this article

Key File Formats

The samples below are all examples of using asymmetric (public-key) RSA encryption. Unfortunately, it appears there are various competing formats for storing the data in files which I aim to cover here. GPG Private Key Generated from gpg --export-secret-key -a "username@email.com" > [filename].asc -----BEGIN PGP PRIVATE KEY…

Read this article

Hard & Soft Links

I've often thought there should be a relational database based filesystem in order to better organize my media collection, but it turns out all I needed was to understand hard links. Soft links are also referred to as symbolic links or symlinks. I may use these terms interchangeably. The Problem…

Read this article

Static Web Hosting With Nginx And Docker

If you need to host some static content online, then you can do this incredibly easily with the pre-prepared official NGINX docker image. Steps Install docker on your server if you haven't already. Navigate to just above the folder that contains your site. For this tutorial, I will refer to…

Read this article

Ubuntu 16.04 - Using Files To Test ZFS

It's good to practice using a tool before actually "going live" with it. Sometimes we don't have disks/computers lying around to be able to set up a dev ZFS RAID array to experiment with, so this tutorial is simply here to show you how to get started with ZFS…

Read this article

ZFS Record Size

Whilst watching a discussion between Allan Jude and Wendell about ZFS, the topic of using the appropriate record size came up. I was intrigued and immediately started breaking up my 6 x 3TB RAIDz2 NAS into multiple datasets. Creating a dataset is as easy as sudo zfs create pool/dataset-name…

Read this article