Skip to content

Instantly share code, notes, and snippets.

View gfrey's full-sized avatar

Gereon Frey gfrey

View GitHub Profile
@gfrey
gfrey / README.md
Last active April 30, 2025 18:02
Nix Flake for kro

Nix Flake for kro

Make sure you have the Nix package manager installed and the "experimental" flake feature enabled:

$ cat ~/.config/nix/nix.conf
experimental-features = nix-command flakes

Then run nix develop to get all required tools installed. Starting VSCode using code . will configure most parts of the IDE properly (the Go extension is necessary, of course).

Keybase proof

I hereby claim:

  • I am gfrey on github.
  • I am gfrey (https://keybase.io/gfrey) on keybase.
  • I have a public key whose fingerprint is C4B6 DA82 02CC E673 7AA3 5D67 1231 DDD2 515F 2772

To claim this, I am signing this object:

@gfrey
gfrey / gist:8472007
Created January 17, 2014 11:34
Upstart script for haproxy with support for reload.
description "Properly handle haproxy"
start on startup
env PID_PATH=/var/run/haproxy.pid
env BIN_PATH=/usr/sbin/haproxy
script
exec /bin/bash <<EOF
$BIN_PATH -f /etc/haproxy.cfg -D -p $PID_PATH