- Open your Keycloak realm.
- Import
keycloak-gitlab.json
. - Fix URLs of the client.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import zipfile | |
import hashlib | |
if len(sys.argv) != 2: | |
raise Exception('Usage: ./zip_checksum.py <zip file>') | |
zip_file_path = sys.argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Re-requisites: | |
# Install gh (https://cli.github.com/manual/) and login | |
cd /to/repo | |
# NOTE: Github appeared to set each release as "latest" when it created it. | |
# Afterwards, I just set the correct release to latest. | |
# All releases were shown in the correct order (though release date was the current date) | |
for tag in $(git tag) | |
do | |
if gh release list | grep -E "\s${tag}\s" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_batch_job_definition" "batch_job_definition" { | |
name = "batch_job_defintion" | |
type = "container" | |
# Provide job definition JSON with placeholders for overrides. | |
container_properties = <<EOF | |
{ | |
"image": "mycontainer:latest", | |
"memory": 128, | |
"vcpus": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export WANTED_PERC_FREE=92 DEL_DIR=./ MAX_DELETIONS=10; for i in $(find ${DEL_DIR} -type f -printf "%TY%Tj %p\n" | sort -n | gawk '{ print $2 }' | head --lines=$MAX_DELETIONS); do if (( $(df ${DEL_DIR} --output=pcent | tail -1 | sed 's/[^0-9]//g') > $WANTED_PERC_FREE )); then rm $i; else exit 1; fi; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am MatthewJohn on github. | |
* I am matthewjohn (https://keybase.io/matthewjohn) on keybase. | |
* I have a public key whose fingerprint is 1436 F32B 11C3 D4C9 FEB6 C648 03D7 E916 1EC2 D65D | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource mcvirt_vm-vm-name-disk-1 | |
{ | |
on node1 | |
{ | |
device /dev/drbd2; | |
disk /dev/node1/mcvirt_vm-vm-name-disk-1-drbd-raw; | |
address 1.2.3.3:7790; | |
flexible-meta-disk /dev/node1/mcvirt_vm-vm-name-disk-1-drbd-meta; | |
} | |
on node2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: source/etc/libvirt/hooks/qemu | |
=================================================================== | |
--- source/etc/libvirt/hooks/qemu (revision 0) | |
+++ source/etc/libvirt/hooks/qemu (working copy) | |
@@ -0,0 +1,16 @@ | |
+#!/bin/bash | |
+ | |
+ | |
+# Example arguments: | |
+# dest: test-vm3 migrate begin - |