Skip to content

Instantly share code, notes, and snippets.

@mikegarciam
mikegarciam / cuid.sql
Created July 23, 2025 18:45 — forked from srfrog/cuid.sql
CUIDs for PL/PgSQL
-- Collision-resistant ids optimized for horizontal scaling and performance, for PL/PgSQL.
-- Based on https://github.com/ericelliott/cuid
-- Version 1.0.0
-- Usage: SELECT cuid();
-- BEGIN CONFIG ---
-- Put a unique host ID (int) here per server instance.
-- Once set, this value should not be changed.
@mikegarciam
mikegarciam / config.yml
Created August 31, 2023 00:36 — forked from abelsonlive/config.yml
Dynamically add partitions to a spectrum table
aws_access_key_id:
aws_secret_access_key:
rs_user:
rs_server:
rs_db:
rs_port:
rs_password:
@mikegarciam
mikegarciam / config.yml
Created August 31, 2023 00:36 — forked from abelsonlive/config.yml
Dynamically add partitions to a spectrum table
aws_access_key_id:
aws_secret_access_key:
rs_user:
rs_server:
rs_db:
rs_port:
rs_password:
@mikegarciam
mikegarciam / README
Created August 5, 2023 20:42 — forked from IAmSurajBobade/README
python script to Execute multiple commands over SSH
Python script to perform multiple commands sequentially over SSH in a single connection
Known issue:
Execution of commands goes on one after another, even though one/many intermediate commands fails
(NOT recommended, if your commands and dependant on previous commands execution)
Kindly share your thoughts on this script.
Link to answer: https://stackoverflow.com/a/43071039/5243762