Skip to content

Instantly share code, notes, and snippets.

View lucasfth's full-sized avatar
☕ Probably drinking coffee

Lucas Hanson lucasfth

☕ Probably drinking coffee
View GitHub Profile
@lucasfth
lucasfth / g
Last active May 22, 2026 20:08
# ===========================================================================
# Git aliases — works in both zsh and bash
# Install: curl -sL https://gist.githubusercontent.com/lucasfth/0bf3925c7480049b83fd9bab3b1c22ee/raw/g >> ~/.bashrc && source ~/.bashrc
# ===========================================================================
alias g='git'
alias gst='git status'
alias gco='git checkout'
alias gpsup='git push -u origin $(git symbolic-ref --short HEAD 2>/dev/null)'
alias gp='git push'
mosquitto_sub -h <EMQX broker endpoint> -t <MQTT topic> -u <MQTT username for authentication> -P <// MQTT password for authentication>
@lucasfth
lucasfth / downscale.bash
Last active February 26, 2025 15:38
Downscale images 720px in height
mkdir resized
for img in *.jpg *.JPG *.png *.PNG; do
magick "$img" -resize x720\> "resized/$img"
done