Skip to content

Instantly share code, notes, and snippets.

View surgiie's full-sized avatar
🔥
Ok

Sergio Compean surgiie

🔥
Ok
View GitHub Profile
@surgiie
surgiie / ask_secret
Created November 13, 2025 23:03
Ask for secret input via function and while redirecting output to stdout still instead of being lost in subshell
## Ask secret input
ask_secret() {
local prompt="$1"
local input confirm
read -s -p "$(yellow_bold '[INPUT]'): $prompt " input >&2
echo >&2
read -s -p "$(yellow_bold '[CONFIRM]'): Confirm input: " confirm >&2
echo >&2
@surgiie
surgiie / controller-logs
Created November 7, 2025 15:28
controller-logs
2025-11-07T15:17:18Z INFO AutoscalingRunnerSet Find existing ephemeral runner set {"version": "0.13.0", "autoscalingrunnerset": {"name":"rr-runner-prod","namespace":"github-actions"}, "name": "rr-runner-prod-s8pj5", "specHash": "59dd5b46c9"}
2025-11-07T15:17:18Z INFO EphemeralRunnerSet Ephemeral runner counts {"version": "0.13.0", "ephemeralrunnerset": {"name":"rr-runner-prod-s8pj5","namespace":"github-actions"}, "pending": 23, "running": 10, "finished": 0, "failed": 0, "deleting": 0}
2025-11-07T15:17:18Z INFO EphemeralRunnerSet Scaling comparison {"version": "0.13.0", "ephemeralrunnerset": {"name":"rr-runner-prod-s8pj5","namespace":"github-actions"}, "current": 33, "desired": 31}
2025-11-07T15:17:18Z INFO EphemeralRunner Ephemeral runner container is still running {"version": "0.13.0", "ephemeralrunner": {"name":"rr-runner-prod-s8pj5-runner-txbjz","namespace":"github-actions"}}
2025-11-07T15:17:18Z INFO EphemeralRunner Ephemeral runner container is still running {"version": "0.13.0", "ephemeralrunner": {"nam
@surgiie
surgiie / conventional-commits-cheatsheet.md
Created January 13, 2025 17:50 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@surgiie
surgiie / toQueryString.js
Last active January 20, 2023 23:42
Javascript function to recursively build a query string from an object.
/**
* Variation of https://gist.github.com/luk-/2722097
*/
function toQueryString(obj, recursiveKey) {
if(obj == null || typeof obj !== "object"){
return "";
}
let keys = Object.keys(obj);