Categories
Mastering Development System & Network

Reason for EXT4 file system corruption of Hyper-V guest

We had our second corruption of an ext4 partition in a relatively short time and ext4 is supposedly very reliable. As this is a virtual machine and the host providing the resources saw no disk errors or power-loss or such, I want to rule out hardware errors for now. So I am wondering if we […]

Categories
Mastering Development System & Network

Does Windows Server 2016 RRAS support NAT reflection/loopback?

I have a home server running Windows Server 2016 Datacenter acting as the NAT on the network. On the same server I’m using Hyper-V to host various services (game servers, GitLab, Plex, etc). I’m using Routing and Remote Access to forward ports to the correct virtual machines. From outside the network, everything works perfectly. Inside […]

Categories
Development

Multiple git accounts: no .ssh/config or SSH agent

I’d like to use multiple Git server accounts (with any of GitHub, GitLab, BitBubket etc.). The accounts are distinguished by their email addresses, name1@email1.com and name2@email2.org and git is setup to use these addresses in the relevant repositories The following constraints apply to the ‘change-account workflow’: Without touching/changing SSH config files (e.g. ~/.ssh/config, etc.) when […]

Categories
Development Linux

Setting up a git server with ssh access

I want to set up a server that hosts git repositories over ssh and https with client certificates. I don’t want any snazzy GUI or anything like that (i.e. not Bitbucket, GitLab, etc) I want a bare minimum configuration for hosting repositories only. However, I do want user separation between repositories. I already have a […]

Categories
Development

Postgres docker: add additional database after initialization

I’m using Postgres within a docker-compose environment to host databases for multiple containers. I basically want to add a database per application directly from docker-compose without the need of manually creating the databases and users. For this, I’m using the init script feature of the Postgres docker image and copy the following bash script by […]

Categories
Development Linux Ubuntu

System sometimes goes dead after `systemctl suspend`, doesn’t come back up even after pulling power cord

I have a machine which is running Ubuntu 16.04 LTS in a light server role (workload predominantly Apache, Docker, GitLab, MySQL and Samba). This machine is running a 3-disk RAID5 mdadm array of Seagate Barracuda Pro HDDs, which may be relevant to this problem. The machine is not booting off the RAID array (a Samsung […]