Skip to content

Instantly share code, notes, and snippets.

View siepkes's full-sized avatar

Jasper Siepkes siepkes

View GitHub Profile
@siepkes
siepkes / gist:8c9dd4907e9f28599a81f4b381bed2cf
Created February 27, 2024 13:56
WAL-G Full backup with healtchecks.io
#!/usr/bin/env ksh93
# This script determines if it is running on the primary PostgreSQL node and then starts a full backup. It does nothing
# when running on PostgreSQL nodes that are replica's.
# Keep PID detection at the top of script to prevent it from breaking (getting wrong values).
OWN_PID=$$
PARENT_PID=$(ps -o ppid= -p "${OWN_PID}")
SHELL_NAME="ksh93"
@siepkes
siepkes / gist:9ecd9042c2d51f79943bc4a0bce0f10e
Created February 1, 2024 16:55
Alien Horizon Proton Linux Exception
826.232:012c:0130:trace:unwind:dump_unwind_info 0x1: pushq %rdi
826.232:012c:0130:trace:unwind:dump_unwind_info handler 000006448A0287BB data at 000006448A792AE8
Unhandled exception. System.NotSupportedException: The song contains video data!
at Microsoft.Xna.Framework.Media.Song.PlatformInitialize(String fileName)
at Microsoft.Xna.Framework.Media.Song..ctor(String fileName, Int32 durationMS)
at Microsoft.Xna.Framework.Content.SongReader.Read(ContentReader input, Song existingInstance)
at Microsoft.Xna.Framework.Content.ContentTypeReader`1.Read(ContentReader input, Object existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.InnerReadObject[T](T existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObject[T]()
at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T]()
#!/usr/bin/env ksh93
if [ ! -d "$1" ]; then
echo "First argument must be the directory where the runtime ZIP has been extracted. For example '~/Downloads/birt'."
exit 1
fi
RUNTIME_PATH=${1}
LIB_PATH="${RUNTIME_PATH}/ReportEngine/lib"
ADDONS_PATH="${RUNTIME_PATH}/ReportEngine/addons"
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='keycloak'>
<service
name='network/keycloak'
type='service'
version='1'>
@siepkes
siepkes / gist:8e1f51e2ce9e44ba7116ed79e49298f4
Created May 8, 2020 12:17
EdgeFS DMCA takedown request
**Are you the copyright holder or authorized to act on the copyright owner's behalf?**
Yes, I am authorized to act on the copyright owner's behalf.
**Please describe the nature of your copyright ownership or authorization to act on the owner's behalf.**
DataDirect Networks, Inc. and its wholly-owned subsidiary, Nexenta by DDN, Inc. (together, “DDN”) are the legal copyright owners of EdgeFS (which was previously known as “NexentaEdge”) as a result of its acquisition of all the assets of Nexenta Systems, Inc., including all rights to the NexentaEdge source code. I am issuing this notice on behalf of DDN.
**Please provide a detailed description of the original copyrighted work that has allegedly been infringed. If possible, include a URL to where it is posted online.**
#!/usr/bin/env bash
# This script does the basic initialization of Wren:DS.
#
# It loads the required default configuration which is instance specific (ie. not .
# For example all password policies reside in the directory server configuration (cn=config).
# Configuration information is not replicated and is specific to each directory server instance.
# Stop on error.
set -e
[Unit]
Description=Configure resolvers
Requires=network-online.target
After=network-online.target
[Service]
Type=oneshot
User=root
Group=root
ExecStart=/usr/local/libexec/configure_resolvers
@siepkes
siepkes / bazel-0.16.0-solaris.patch
Created August 11, 2018 13:09
Patch to make Bazel 0.16.0 dist build on SmartOS (aka Illumos, aka Solaris)
--- bazel-0.16-orig/scripts/bootstrap/buildenv.sh 2018-08-10 12:06:01.259567341 +0000
+++ bazel-0.16/scripts/bootstrap/buildenv.sh 2018-08-10 12:09:09.651970713 +0000
@@ -83,6 +83,10 @@
JAVA_HOME="${JAVA_HOME:-/usr/local/openjdk8}"
;;
+solaris)
+ JAVA_HOME="${JAVA_HOME:-/opt/local/java/openjdk8}"
+ ;;
+
@siepkes
siepkes / bazel-0.11.1-solaris.patch
Last active April 23, 2018 20:17
Patch to make Bazel 0.11.1 dist build on SmartOS (aka Illumos, aka Solaris)
diff -Nuar '--exclude=bazel-*' '--exclude=output' bazel-orig/scripts/bootstrap/buildenv.sh bazel/scripts/bootstrap/buildenv.sh
--- bazel-orig/scripts/bootstrap/buildenv.sh 2018-04-01 14:52:36.150686900 +0000
+++ bazel/scripts/bootstrap/buildenv.sh 2018-04-16 15:39:12.323691231 +0000
@@ -83,6 +83,10 @@
JAVA_HOME="${JAVA_HOME:-/usr/local/openjdk8}"
;;
+solaris)
+ JAVA_HOME="${JAVA_HOME:-/opt/local/java/openjdk8}"
+ ;;

Keybase proof

I hereby claim:

  • I am siepkes on github.
  • I am jsiepkes (https://keybase.io/jsiepkes) on keybase.
  • I have a public key ASBCgvVRiwkNQ2Dak4J-GiIsUz6Abx_Kifgba0QIe7j4_wo

To claim this, I am signing this object: