Skip to content

Instantly share code, notes, and snippets.

View rkmax's full-sized avatar

Julian Reyes Escrigas rkmax

View GitHub Profile
@webcss
webcss / fireactive.js
Last active October 6, 2016 17:10
Firebase.com with Mithril - the functional way
var fireactive = function(controller) {
return function(args) {
var instance = {};
var _ref = args.firebase;
instance.ref = _ref;
if (args.asObject) {
_ref.on('value', function asObject(snap) {
@ygotthilf
ygotthilf / jwtRS256.sh
Last active October 19, 2025 16:19
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@leaysgur
leaysgur / 1-main.js
Last active June 12, 2018 15:37
passwordless auth0 with amazon cognito
// const auth0 = require('auth0-js');
const webAuth = new auth0.WebAuth({
domain: '<YOUR_DOMAIN>',
clientID: '<YOUR_CLIENT_ID>',
});
@exdeniz
exdeniz / migrate_from_exist_hitory.sh
Created June 6, 2020 21:17
Remove Duplicate zsh History
cat -n .zsh_history | sort -t ';' -uk2 | sort -nk1 | cut -f2- > .zhistory
#!/usr/bin/env bash
#
# rofi-vscode.sh - A script to open recent files, folders and workspaces in VS Code.
# requires: rofi, jq, sqlite3
#
# Usage:
# rofi -modi "VSCode:rofi-vscode.sh" -show VSCode
#
vscdb_path="$HOME/.config/Code/User/globalStorage/state.vscdb"
@rkmax
rkmax / README.md
Last active July 29, 2025 13:49
Routes external links to your currently active Firefox profile instead of the default one. Useful when running multiple Firefox profiles simultaneously. Includes installer and desktop integration for Hyprland/Wayland systems.

Firefox Broker

Routes external links to the most recently active Firefox profile, solving Firefox's limitation of always opening links in the default profile.

Overview

Firefox Broker is a TypeScript/Deno utility that intelligently routes URLs to the appropriate Firefox profile based on window focus history. Instead of always opening links in the default profile, it identifies which Firefox instance was most recently active and opens the link there.

Features