Skip to content

Instantly share code, notes, and snippets.

View dk5ax's full-sized avatar
🏠

Markus Hammelmann dk5ax

🏠
View GitHub Profile
@dk5ax
dk5ax / apt-security-check
Created October 3, 2025 08:35 — forked from thesp0nge/apt-security-check
A slightly hacked version of apt-check that takes care only about security packages that need an update.
#!/usr/bin/python3
#
# apt-security-check - [email protected]
#
# A slightly hacked version of apt-check that takes care only about security
# packages that need an update.
#
# Tested on Ubuntu 16.04.5 LTS, 18.04.1 LTS
@dk5ax
dk5ax / keycloak_create_realm_and_client.sh
Created October 8, 2023 14:49 — forked from lukaszbudnik/keycloak_create_realm_and_client.sh
youtube.com - Keycloak Multi-Tenant JavaScript Clients
# don't forget to update below variables to point to your Keycloak instance, main realm, and admin user
export KEYCLOAK_URL="http://localhost:8080"
export KEYCLOAK_MAIN_REALM=master
export KEYCLOAK_USER=lb
export KEYCLOAK_PASSWORD=***
# get the access token
access_token=$(curl --silent \
-d "client_id=admin-cli" \
-d "username=$KEYCLOAK_USER" \
@dk5ax
dk5ax / bfs.js
Created March 4, 2022 07:20 — forked from tksilicon/bfs.js
// Get the queue from https://github.com/swarup260/Learning_Algorithms/blob/master/data_structure/Queue.js
const { Queue } = require('./queue.js')
let graphAdj;
var visited;
let queue;
const initGraph = (maxVertice) => {
visited = new Array(maxVertice);