Skip to content

Instantly share code, notes, and snippets.

View danlamanna's full-sized avatar
🏠
Working from home

Dan LaManna danlamanna

🏠
Working from home
View GitHub Profile
@elalemanyo
elalemanyo / README.md
Last active May 11, 2025 14:52
Debug zsh startup time

Debug zsh startup time

  1. Inject profiling code

    At the beginning of your .zshrc add following: zmodload zsh/zprof

    and at the end add: zprof

    This will load zprof mod and display what your shell was doing durung your initialization.

@danlamanna
danlamanna / create-gh-pr.sh
Last active February 16, 2021 16:55
Create and merge a GH PR automatically
#!/usr/bin/env bash
set -euo pipefail
MERGE_WHEN_CHECKS_PASS=0
VIEW_IN_WEB=0
if ! [ -x "$(command -v gh)" ]; then
echo 'Error: gh is not installed.' >&2
exit 1
fi