Skip to content

Instantly share code, notes, and snippets.

@gabigabogabu
gabigabogabu / pm2curl.txt
Created June 12, 2025 16:35
postman 2 curl
#!/usr/bin/env node
import { readFile, writeFile, mkdir } from 'fs/promises';
import { join } from 'path';
/**
* @typedef {Object} PostmanUrl
* @property {string} [raw]
* @property {string} [protocol]
* @property {string[]} [host]
@gabigabogabu
gabigabogabu / part_of_a_.zprofile.md
Last active March 12, 2021 10:41
Mac Updates keep removing git, so I made this

Mac Updates keep removing git, so I made this:

Add this to your .zprofile and it will automatically check if git is installed and ask to install it if it isn't when you start a new zsh session.

if [[ "$(git -v 2>&1)" == *"error: invalid active developer path"* ]]; then
  echo "git missing. installing Command Line Tools"
  xcode-select --install
fi
@gabigabogabu
gabigabogabu / running_keycloak_docker_on_m1_macs.md
Last active November 24, 2023 19:48
running Keycloak docker container on m1 macs

Running Keycloak Docker container on m1 macs

Download/Fork and clone/get this stuff on your machine https://github.com/keycloak/keycloak-containers

Then in the top directory of the repo run

% docker build -t <whatever you want to call the image> ./server
% docker run -p 8080:8080