Skip to content

Instantly share code, notes, and snippets.

View lucasbracher's full-sized avatar

Lucas Bracher lucasbracher

View GitHub Profile
@lucasbracher
lucasbracher / show_popup_packages.sh
Created August 1, 2025 17:14
Show which android package is popping up on screen
#!/bin/bash
#
# This script is really useful when you have malware in your phone and you want to remove it.
#
# Before you begin, you need to install adb tools (look for instructions for your platform) and
# you need to enable developer mode in your phone.
#
# After it, connect your phone to your computer, enable ADB debug, enable the connection between
# phone and computer, and then you are able to start.
#
@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'