Skip to content

Instantly share code, notes, and snippets.

View JZubero's full-sized avatar
🚀

Julian Scheuchenzuber JZubero

🚀
View GitHub Profile
@JZubero
JZubero / gitlab-ci-vpn.yml
Created September 24, 2025 11:01
VPN connection via Gitlab CI
##
# VPN Config
#
# See https://forum.gitlab.com/t/connect-vpn-during-ci-cd/7585/10
# Check if ovpn config file (injected via $CLIENT_OVPN) expires/needs renewal
#
# For debugging add script "cat /etc/openvpn/client.log"
#
# To make this work it was necessary to adjust the Gitlab Runner config.toml
#
@JZubero
JZubero / firebase-auth-errors.json
Last active December 5, 2024 14:08
Firebase Authentication API Errors
{
"auth/claims-too-large": {
"description": "The claims payload provided to setCustomUserClaims() exceeds the maximum allowed size of 1000 bytes.",
"labels": {
"de": "Es gibt ein Problem mit den sogenannten \"claims\". Die zulässige Maximalgröße wurde überschritten."
}
},
"auth/email-already-exists": {
"description": "The provided email is already in use by an existing user. Each user must have a unique email.",
"labels": {
@JZubero
JZubero / typesense-sort-with-special-chars.sh
Created September 9, 2022 08:07
Demo of problematic Typesense string sorting with special chars like German Umlauts
#!/bin/bash
printf "Creating demo collection...\n";
curl "http://localhost:8108/collections" \
-X POST \
-H "X-TYPESENSE-API-KEY: xyz" \
-d '{
"name": "books",
"fields": [
{"name": "title", "type": "string", "sort": true },
{"name": "author", "type": "string" },
@JZubero
JZubero / smi-posting-1374.json
Created August 3, 2022 14:27
Example SMI posting document payload.
{
"id": 1374,
"score": null,
"state": "published",
"type": "info",
"rawType": "info",
"title": {
"en_US": "Celebrate as Dutch legend Robin van Persie turns 39 on August 6th (available in 4:5, 9:16, 1:1)"
},
"publicationDate": "2022-08-01 08:56:37",
@JZubero
JZubero / better-life-product-payload-v3.json
Created April 7, 2021 11:55
Better Life Product Response Payload Version 3
{
"name": "cider",
"ingredients": "Vatten, appelvin, socker, päronjuicekoncentrat, surhetsreglerande medel citronsyra, naturliga aromer, konserveringsmedel kaliumsorbat och KALIUMDISULFIT, färg sockerkulör.",
"allergens": {
"allergenStatement": "Laktos",
"allergenItems": {
"CONTAINS": [
{
"originCode": "AU",
"gs1Code": "AU"
@JZubero
JZubero / package.json
Created June 15, 2020 13:47
List of language tags according to RFC 5646.
{
"name": "rfc5646-language-tags",
"version": "0.1.0",
"author": "msikma"
}
@JZubero
JZubero / nginx-silverstripe-php7.1.conf
Created August 22, 2018 17:39
nginx SilverStripe config for PHP7.1
error_page 404 /assets/error-404.html;
error_page 500 /assets/error-500.html;
location / {
try_files $uri @silverstripe;
}
location @silverstripe {
fastcgi_keep_conn on;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
@JZubero
JZubero / fifa-country-codes.yml
Created August 15, 2018 12:42
All 211 official FIFA country codes sorted by value as YAML collection.
Countries:
AFG: Afghanistan
ALB: Albania
ALG: Algeria
ASA: American Samoa
AND: Andorra
ANG: Angola
AIA: Anguilla
ATG: Antigua and Barbuda
ARG: Argentina
@JZubero
JZubero / 0_reuse_code.js
Created May 19, 2016 14:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console