This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # =========================================================================== | |
| # 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mosquitto_sub -h <EMQX broker endpoint> -t <MQTT topic> -u <MQTT username for authentication> -P <// MQTT password for authentication> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir resized | |
| for img in *.jpg *.JPG *.png *.PNG; do | |
| magick "$img" -resize x720\> "resized/$img" | |
| done |