Skip to content

Instantly share code, notes, and snippets.

View lucasbracher's full-sized avatar

Lucas Bracher lucasbracher

View GitHub Profile
@lucasbracher
lucasbracher / gitmeld.plugin.zsh
Created July 1, 2025 13:33
Ohmyzsh plugin for using meld as git diff without making it the default
gitmeld() {
FILENAME=$1
HASH_1=$2
HASH_2={3:HEAD}
meld --label="$HASH_2 $(basename $FILENAME)" --label="$HASH_1 $(basename $FILENAME)" <(git show $HASH_2:$FILENAME) <(git show $HASH_1:$FILENAME)
}
@lucasbracher
lucasbracher / audio_pomodoro_macos.sh
Last active July 1, 2025 21:33
Quick and simple audio pomodoro for MacOS.
#!/bin/bash
# Usage:
# ./audio_pomodoro_macos.sh <first_pomodoro_time> <number of pomodoros>
# Example:
# ./audio_pomodoro_macos.sh 20m 10
# It will create 10 pomodoros; first one is 20 minutes long, subsequent are 25 minutes long.
# Both arguments are optional. If none are given, it will create 16 pomodoros, 25 minutes long each.
# 16 pomodoros equals 8 hours:
@lucasbracher
lucasbracher / .screenrc-main-example
Last active April 20, 2021 12:12 — forked from ChrisWills/.screenrc-main-example
A nice default screenrc
# GNU Screen - main configuration file
# All other .screenrc files will source this file to inherit settings.
# Author: Christian Wills - [email protected]
# Allow bold colors - necessary for some reason
attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'