Skip to content

Instantly share code, notes, and snippets.

@CFelipezapata
CFelipezapata / cleanup_orphaned_schedules.py
Created May 21, 2026 23:41
One-time cleanup of Temporal schedules for soft-deleted workflows (ENG-2254)
"""One-time cleanup of Temporal schedules for soft-deleted workflows.
Usage:
# Show orphaned schedules and prompt to delete
python scripts/cleanup_orphaned_schedules.py
# Filter by org
python scripts/cleanup_orphaned_schedules.py --org-id a1814a5b-4091-435d-bff6-3dd62110aa98
# Dry run — just show the table, no prompt
@CFelipezapata
CFelipezapata / macos-same-app-window-cycle.ahk
Last active July 3, 2025 22:24
AHK V2 Script to switch between windows of the same app for autohotkey, like macOS
; ahk V2
; Source: https://gist.github.com/CFelipezapata/f7563d364197936a6673d28ad53b01dc
; Alt + ` : Cycle between windows of the same app (like macOS)
!`::{
activeProcess := WinGetProcessName("A")
winList := WinGetList("ahk_exe " activeProcess)
if winList.Length > 1 {
; Activate the last window in the stack (most recently used *other* one)