Skip to content

Instantly share code, notes, and snippets.

View jxsl13's full-sized avatar

John Behm jxsl13

  • Arvato Systems GmbH
  • Germany
  • 07:25 (UTC +02:00)
View GitHub Profile
@jxsl13
jxsl13 / HadesII.log
Created June 7, 2024 16:50
Hades II - XBOX Mouse Input Logs
date time [thread name/id ] file:line v |
2024-06-06 22:27:09 [MainThread ] Log.cpp:285 INFO| Opened log file Hades II.log
2024-06-06 22:27:09 [MainThread ] Program.cpp:2142 INFO| Previous stack guard size was 0 bytes
2024-06-06 22:27:09 [MainThread ] OptionSet.cpp:157 INFO| argument: /c
2024-06-06 22:27:09 [MainThread ] OptionSet.cpp:157 INFO| argument: ../
2024-06-06 22:27:09 [MainThread ] OptionSet.cpp:157 INFO| argument: /steampowered
2024-06-06 22:27:09 [MainThread ] OptionSet.cpp:157 INFO| argument: /VerboseScriptLogging=false
2024-06-06 22:27:09 [MainThread ] OptionSet.cpp:157 INFO| argument: /DebugKeysEnabled=false
2024-06-06 22:27:09 [MainThread ] OptionSet.cpp:157 INFO| argument: /UnsafeDebugKeysEnabled=false
2024-06-06 22:27:09 [MainThread ] OptionSet.cpp:157 INFO| argument: /LiveCreateTextures=false
@jxsl13
jxsl13 / pre-commit-for-go-projects
Created October 23, 2023 20:00 — forked from alexandervantrijffel/pre-commit-for-go-projects
git pre-commit hook script that runs go build, go test, goimports for all packages
#!/bin/bash
# How to use:
# Store this file as .git/hooks/pre-commit and make it executable
# Or, to share the hook with your team, store as .githooks/pre-commit,
# make this file executable and run:
# git config core.hooksPath .githooks
# A pre-commit hook for go projects. In addition to the standard
@jxsl13
jxsl13 / tardiff
Last active January 26, 2023 08:49
shell script for seeing the difference between two tar.gz file contents
#!/bin/bash
# tardiff tar1.tar.gz tar2.tar.gz
diff -q <(tar -xOvzf $1 | rev | cut -d\/ -f1 | rev) <(tar -xOvzf $2 | rev | cut -d\/ -f1 | rev)
@jxsl13
jxsl13 / koanf.go
Last active December 24, 2023 15:45
Koanf and Cobra integration
package config
import (
"errors"
"fmt"
"os"
"reflect"
"strconv"
"strings"
@jxsl13
jxsl13 / config.go
Created November 7, 2022 11:53
urfave/cli and knadh/koanf integration v1
package config
import (
"errors"
"fmt"
"log"
"net/url"
"os"
"strings"
"sync"
@jxsl13
jxsl13 / form.go
Created November 3, 2022 11:57
Golang Keycloak OAuth2 request bodies.
package form
import (
"io"
"net/url"
"strings"
"github.com/lestrrat-go/jwx/jwt"
)
@jxsl13
jxsl13 / client.go
Created November 1, 2022 15:07
oauth2 resty wrapper (auto token refresh)
package client
import (
"sync"
"github.com/go-resty/resty/v2"
)
var (
factoryOnce sync.Once
@jxsl13
jxsl13 / Dockerfile
Created September 5, 2022 14:32
Go(lang) alpine Dockerfile template
FROM golang:latest AS builder
##### Only for PRIVATE git repositories #####
# required credentials for go package repositories
# bitbucket user and token MUST be either URL encoded or only contain alphanumeric characters.
# Kaniko --build-arg ${item.key}=${item.value} "
#ARG BITBUCKET_USER
#ARG BITBUCKET_TOKEN
#ARG BITBUCKET_DOMAIN
@jxsl13
jxsl13 / bitnami-keycloak-values.yaml
Last active August 9, 2022 12:51
Example helm chart values for bitnami/keycloak (Integration tests)
global:
imageRegistry: docker.io
imagePullSecrets: []
image:
repository: bitnami/keycloak
tag: 18.0.1-debian-11-r2
auth:
adminUser: admin
@jxsl13
jxsl13 / bitnami-postgresql-values.yaml
Last active August 9, 2022 12:52
Example helm chart values for bitnami/postgresql (Integration tests)
global:
postgresql:
auth:
postgresPassword: "postgres"
username: "user"
password: "password"
database: "database"
image: