Skip to content

Instantly share code, notes, and snippets.

View abianche's full-sized avatar
:octocat:
Working on Skroll

Alessio Bianchetti abianche

:octocat:
Working on Skroll
View GitHub Profile
@abianche
abianche / cdw.ps1
Created September 26, 2025 06:40
Simple directory warp/shortcut system for PowerShell.
<#
.SYNOPSIS
Simple directory warp/shortcut system for PowerShell.
.DESCRIPTION
Defines a set of path shortcuts (warp points) so you can quickly `cd`
into commonly used directories. Includes:
- `cdw <name>` : jumps to the directory shortcut
- `cdw-list` : shows all defined shortcuts
- Tab completion for `cdw` arguments
@abianche
abianche / cleanup_deployments.sh
Created September 13, 2025 12:58
Delete all GitHub deployments except the most recent one.
#!/bin/bash
# Delete all GitHub deployments except the most recent one
DRY_RUN="${DRY_RUN:-false}"
# --- Detect owner/repo if not provided ---
OWNER="${OWNER:-}"
REPO="${REPO:-}"
if [[ -z "${OWNER}" || -z "${REPO}" ]]; then
if gh repo view >/dev/null 2>&1; then