Skip to content

Instantly share code, notes, and snippets.

View pp5x's full-sized avatar

Pierre Pagnoux pp5x

View GitHub Profile
@pp5x
pp5x / migrate_bitbucket_to_github.sh
Created July 13, 2025 23:08
Bitbucket to GitHub Migration Scripts
#!/bin/bash
set -euo pipefail
WORKSPACE="your-workspace"
MIRRORS_DIR="mirrors"
command -v bb >/dev/null 2>&1 || { echo "ERROR: bb command not found" >&2; exit 1; }
command -v git >/dev/null 2>&1 || { echo "ERROR: git command not found" >&2; exit 1; }
command -v jq >/dev/null 2>&1 || { echo "ERROR: jq command not found" >&2; exit 1; }
@pp5x
pp5x / rel_vcs_prompt.zsh
Last active September 8, 2025 10:03
ZSH prompt relative to VCS + $vr VCS root shell variable
setopt PROMPT_SUBST
setopt PROMPT_PERCENT
# COLORS_1='#87CEEB'
# COLORS_2='#6CBDE9'
COLORS_3= #50ABE7
# COLORS_4='#BAE0F3'
COLORS_1='yellow'
COLORS_2='green'
COLORS_3='green'
@pp5x
pp5x / config
Created May 3, 2025 10:09
Ghostty on macOS configuration
theme = dark:Dark Pastel,light:xcodelight
font-family = IosevkaTermSlab Nerd Font Mono
bold-is-bright = true
selection-invert-fg-bg = true
shell-integration-features = no-cursor
cursor-style = block
macos-icon = custom-style
macos-icon-frame = beige
@pp5x
pp5x / ChunkAndCopy.ps1
Last active January 28, 2025 10:23
Send a file in chunk to a specific window process
# Requires: Install-Module -Name BaseEncoder -Scope CurrentUse
param (
[string] $path,
[int] $start = 0
)
[Object] $path = Get-Item $path
function Show-Window {

OpenBSD

sysupgrade to latest

vi /etc/installurl
sysupgrade -s

Update other packages

pkg_add -Uu

@pp5x
pp5x / covid.bash
Last active June 16, 2021 13:14
Search vaccine availabilities for next 24 hours
#! /usr/bin/env bash
##############################################################################
# Usage: ./covid.sh
# Checks COVID-19 vaccine slots on Doctolib every 5-15 seconds.
# If you want to keep the Mac awake: caffeinate ./covid.sh
#
# Stop the script with Ctrl-C
#
# When the script found a slot it will wait 1min 30 before proceeding to next