Skip to content

Instantly share code, notes, and snippets.

View nicolas-goudry's full-sized avatar

Nicolas Goudry nicolas-goudry

View GitHub Profile
@nicolas-goudry
nicolas-goudry / gen_truststore.sh
Last active January 15, 2024 14:32
Bash script to generate truststore from server certificate
#!/usr/bin/env bash
# Exit on error
set -e
# Variables
SCRIPT_NAME="$(basename "$0")"
DEFAULT_PASSWORD="password"
DEFAULT_OUTFILE="store.jks"
@nicolas-goudry
nicolas-goudry / get_kcadm.sh
Last active January 15, 2024 14:20
Bash script to retrieve kcadm.sh from Keycloak server running on Kubernetes
#!/usr/bin/env bash
# Exit on error
set -e
# Variables
SCRIPT_NAME="$(basename "$0")"
OUTDIR="$PWD/kcadm"
# Color codes
@nicolas-goudry
nicolas-goudry / lucca-faces-cheat.js
Last active July 13, 2024 19:30
Want to be the best at Lucca Faces? Run the game, then execute this code into your console. Let it play until you are the best!
// New version courtesy of JCluzet. Thanks!
(() => {
const STORAGE_KEY = 'lucca_faces_data_v2';
let people = JSON.parse(localStorage.getItem(STORAGE_KEY)) || {};
let currentImageHash = '';
let retryAttempts = 0;
const MAX_RETRY_ATTEMPTS = 5; // Adjust max attempts count
function getImageHash(imageSrc) {
return new Promise((resolve, reject) => {