Skip to content

Instantly share code, notes, and snippets.

View arvinhubert's full-sized avatar

Arvin Hubert Echavez arvinhubert

View GitHub Profile
@dragonfire1119
dragonfire1119 / bbtw-nginx-proxy-manager-docker-compose
Created June 23, 2023 15:35
Nginx Proxy Manager Docker Compose
version: '3.8'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '81:81'
- '443:443'
volumes:
@dasniko
dasniko / _keycloak-cluster-config.md
Last active October 29, 2025 14:41
How to configure a Keycloak cluster properly (Quarkus edition)

Keycloak Cluster Configuration (How to)

This is a short and simple example on how to build a proper Keycloak cluster, using DNS_PING as discovery protocol and an NGINX server as reverse proxy.

If you prefer to use JDBC_PING, see @xgp's example gist here: https://gist.github.com/xgp/768eea11f92806b9c83f95902f7f8f80


Please see also my video about Keycloak Clustering: http://www.youtube.com/watch?v=P96VQkBBNxU
NOTE: The video covers JDBC_PING protocol and uses the legacy Keycloak Wildfly distribution!

@dasniko
dasniko / _keycloak-cluster-config.md
Last active March 8, 2026 22:07
How to configure a keycloak cluster properly (legacy Wildfly edition)

Keycloak Cluster Configuration (How to) - Legacy Wildfly Distribution!!!

This is a short and simple example on how to build a proper Keycloak cluster, using JDBC_PING as discovery protocol and an NGINX server as reverse proxy.

As this is for legacy Keycloak version (Wildfly based, up until version 17), you can find an example for more current and uptodate versions at this gist here: https://gist.github.com/dasniko/3a57913047af3ca1b6b0a83b294dc1a1


Please see also my video about Keycloak Clustering: http://www.youtube.com/watch?v=P96VQkBBNxU

@sscarduzio
sscarduzio / index.js
Last active February 3, 2025 13:54
Zero bullshit Keycloak authentication for Express JS - from
/*
SEE FIRST COMMENT FOR DESCRIPTION AND USAGE
*/
const Keycloak = require('keycloak-connect')
const express = require('express')
const session = require('express-session')
const app = express()
const LOGIN_PATH = '/login'
const LOGOUT_PATH = '/logout'
@andreyryabtsev
andreyryabtsev / backmatting.ipynb
Last active January 29, 2026 13:02
BackMatting.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jasco
jasco / download_fetched_response.js
Last active April 2, 2020 07:48
Browser download from fetched data
// Most samples used createObjectURL which gave errors suggesting no longer supported by the browser.
// This implementation encodes as a base64 string and saves as an octet-stream.
// Adapted from https://stackoverflow.com/a/38384008 and https://stackoverflow.com/a/11562550
function download(filename, arrayBuffer) {
const element = document.createElement('a');
const base64String = btoa(String.fromCharCode(...new Uint8Array(arrayBuffer)));
element.setAttribute('href', 'data:application/octet-stream;base64,' + base64String);
element.setAttribute('download', filename);
element.style.display = 'none';
document.body.appendChild(element);
@nickturrietta
nickturrietta / test-round-robin-proxy-with-cookies.js
Last active April 3, 2020 05:13
Cloudflare Worker - Round Robin Proxy With Cookies
const COOKIE_DOMAIN = 'www.sdrock.com';
const COOKIE_NAME = 'proxy_url_target';
const URLS = [
'https://www.sdrock.com/ministries/childrens/',
'https://www.sdrock.com/ministries/mens/',
'https://www.sdrock.com/ministries/womens/',
'https://www.sdrock.com/ministries/youngadult/',
'https://www.sdrock.com/ministries/youth/',
@tomhicks
tomhicks / plink-plonk.js
Last active December 26, 2025 08:35
Listen to your web pages
@raulqf
raulqf / Install_OpenCV4_CUDA12.6_CUDNN8.9.md
Last active February 25, 2026 16:48
How to install OpenCV 4.10 with CUDA 12 in Ubuntu 24.04

Install OpenCV 4.10 with CUDA 12.6 and CUDNN 8.9 in Ubuntu 24.04

First of all install update and upgrade your system:

    $ sudo apt update
    $ sudo apt upgrade

Then, install required libraries:

@greyscaled
greyscaled / README.md
Last active December 10, 2025 00:19
Sequelize + Express + Migrations + Seed Starter