Skip to content

Instantly share code, notes, and snippets.

View FrancescoBorzi's full-sized avatar
🏳️‍🌈
Live and let live

Francesco Borzì FrancescoBorzi

🏳️‍🌈
Live and let live
View GitHub Profile
@FrancescoBorzi
FrancescoBorzi / claude-code-completion-sound.md
Created June 25, 2026 14:32
Claude Code Stop hook: sound on turn completion, but only when the terminal window is unfocused (macOS)

Claude Code: play a sound on turn completion, only when unfocused (macOS)

A Claude Code Stop hook that plays a sound every time a turn finishes, but stays silent when the window hosting the session is focused. So you only hear it when you've tabbed away.

It works whether Claude Code runs in Terminal, iTerm2, Ghostty, or an editor's integrated terminal (Zed, VS Code), because the focus check walks the process tree rather than matching app names.

Why

Claude Code's built-in terminal bell only fires when it needs your attention (a permission prompt or waiting on input), not on plain quick completions. If you want an audible "done" on every turn, a Stop hook with afplay is reliable and independent of your terminal's bell settings.

@FrancescoBorzi
FrancescoBorzi / settings.json
Last active July 17, 2026 13:28
Claude Code ccstatusline config
{
"version": 3,
"lines": [
[
{
"id": "git-repo",
"type": "git-origin-owner-repo",
"color": "brightBlue"
},
{
@FrancescoBorzi
FrancescoBorzi / fe-january-2024-statistics.csv
Last active May 9, 2024 17:00
Development activity statistics of the most common Front-end frameworks in 2024 - Francesco Borzi'
# Unique Authors Lines added Lines removed Closed Issues New Issues Merged PRs Open PRs
Angular 89 ~91k ~65k 180 75 11 37
React 14 ~21k ~12k 57 24 112 63
Svelte 28 ~12k ~5k 145 67 138 16
Vue 26 ~3k ~2k 101 26 53 22
@FrancescoBorzi
FrancescoBorzi / checkpoint.sh
Created July 23, 2020 16:04 — forked from bubenkoff/checkpoint.sh
Endpoint Security VPN FULL start/stop script for Mac OS X
#!/bin/bash
#
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just
# from time to time
#
# Usage: ./checkpoint.sh
#
# The script checks if Enpoint Security VPN is running. If it is, then it shuts it down, if it is not, it fires it up.
# Or, make an Automator action and paste the script.