Skip to content

Instantly share code, notes, and snippets.

@ljw1004
ljw1004 / you_are_not_right.sh
Last active November 19, 2025 17:05
A UserPromptSubmit hook for Claude Code to stop it saying "You're right"
#!/bin/bash
set -euo pipefail
trap 'echo "at line $LINENO, exit code $? from $BASH_COMMAND" >&2; exit 1' ERR
# This is a Claude Code hook to stop it saying "you are right".
#
# Installation:
# 1. Save this script and chmod +x it to make it executable.
# 2. Within Claude Code, /hooks / UserPromptSubmit > Add a new hook (this file)
#
@breunigs
breunigs / measure-net-speed-i3status.bash
Created August 4, 2012 18:59
bash script that measures the network throughput on configured adapters between calls. Intended to be used with i3status/i3bar and similar. Strives to only use bash-builtins.
#!/bin/bash
# Public Domain
# (someone claimed the next lines would be useful for… people. So here goes:
# © 2012 Stefan Breunig
# [email protected])
# append i3status output to the measure-net-speed’s one. the quote and escape
# magic is required to get valid JSON output, which is expected by i3bar (if
# you want colors, that is. Otherwise plain text would be fine). For colors,
# your i3status.conf should contain: