Skip to content

Instantly share code, notes, and snippets.

@Shastick
Shastick / land-check.sh
Last active May 17, 2023 09:23
Contains a (draft) pre-receive commit hook to be used on a phabricator instance in order to verify that inbound commits correspond to the content of their Diff.
#!/bin/bash
set -eo pipefail
# Note to readers: this hook lives within a phabricator instance that runs from a xiimoon/phabricator docker image.
# Additionally, you'll need:
# - jq
# - cmp
# - mounting a valid conduit api token to /env_dir/PHABRICATOR_CONDUIT_TOKEN
#
@Shastick
Shastick / BUILD.patch
Created May 20, 2021 19:50
Bazel go_repository rule invocation to get godror to build with rules_go and CGO
--- BUILD.bazel.orig 2021-05-20 09:45:18.000000000 +0200
+++ BUILD.bazel 2021-05-20 10:09:15.000000000 +0200
@@ -1,4 +1,4 @@
-load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+load("@io_bazel_rules_go//go:def.bzl", "go_test", "go_library")
go_library(
name = "godror",
@@ -22,7 +22,10 @@
"subscr.c",