Skip to content

Instantly share code, notes, and snippets.

Avatar

Gert van Dijk gertvdijk

View GitHub Profile
@gertvdijk
gertvdijk / init_and_start_gerrit.sh
Created Jul 27, 2018
Init and start Gerrit in a single shell script example
View init_and_start_gerrit.sh
#!/bin/sh -ex
SITE_PATH="${HOME}/site"
GERRIT_WAR="/path/to/gerrit.war"
# Because Gerrit's "daemon --init" can't take init options we will do this
# separately. Feature request filed:
# https://bugs.chromium.org/p/gerrit/issues/detail?id=9004
# Init site (provision). Note that the GERRIT_WAR may be a different version
@gertvdijk
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.
export GERRIT_PROJECT=foo
# 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
cd $GERRIT_PROJECT
scp -p ${GERRIT_HOST}:hooks/commit-msg .git/hooks/
@gertvdijk
gertvdijk / install-rkt.sh
Last active Jan 26, 2017
Create rkt package for Debian/Ubuntu using checkinstall
View install-rkt.sh
#!/bin/bash
# Based on https://github.com/coreos/rkt/blob/v1.15.0/scripts/install-rkt.sh
#
# Pre-requirement: install the packages:
# - ca-certificates
# - curl
# - gnupg2
# - bash-completion
# - checkinstall
View keybase.md

Keybase proof

I hereby claim:

  • I am gertvdijk on github.
  • I am gertvdijk (https://keybase.io/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:

You can’t perform that action at this time.