Skip to content

Instantly share code, notes, and snippets.


Gert van Dijk gertvdijk

View GitHub Profile
gertvdijk /
Created Mar 15, 2021
PyTest PostgreSQL Docker image fixture
import time
from typing import Optional
import docker
import pytest
class PostgresImage:
_container_id: Optional[str] = None
_container_obj: Optional[docker.models.containers.Container] = None
gertvdijk / gist:8f6e6c7b12b5f16a1cd70f757b147b93
Last active Jul 27, 2018
Demonstrating Gerrit issue 9498: Trigger Gerrit server error on diff
View gist:8f6e6c7b12b5f16a1cd70f757b147b93
# 0) Create Gerrit dev instance, create project 'foo', clone it, etc.
# Have set up a ~/.ssh/config with 'Host ${GERRIT_HOST}' configuration that sets
# user and port.
export GERRIT_HOST=testgerrit
git clone ssh://${GERRIT_HOST}/$GERRIT_PROJECT
scp -p ${GERRIT_HOST}:hooks/commit-msg .git/hooks/
gertvdijk /
Created Jul 27, 2018
Init and start Gerrit in a single shell script example
#!/bin/sh -ex
# Because Gerrit's "daemon --init" can't take init options we will do this
# separately. Feature request filed:
# Init site (provision). Note that the GERRIT_WAR may be a different version
gertvdijk /
Last active Jan 26, 2017
Create rkt package for Debian/Ubuntu using checkinstall
# Based on
# Pre-requirement: install the packages:
# - ca-certificates
# - curl
# - gnupg2
# - bash-completion
# - checkinstall

Keybase proof

I hereby claim:

  • I am gertvdijk on github.
  • I am gertvdijk ( on keybase.
  • I have a public key whose fingerprint is BB0F CCD1 00FB 082F D67E FBF9 B90E 30CB A08C 9903

To claim this, I am signing this object: