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 […]