Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View SandroMachado's full-sized avatar

Sandro Machado SandroMachado

View GitHub Profile
# branch (verbose)
br = branch -v
# commit
ci = commit --verbose
# amend your last commit
amend = commit --amend --verbose
SandroMachado / pi-reboot-on-network-failure
Created May 14, 2017 20:15
Script to reboot the raspberry pi if there is no network available
while true
wget -q --tries=10 --timeout=20 --spider
if [[ $? -eq 0 ]]; then
echo "Online"
echo "Offline"
echo raspberry | sudo -S sudo reboot
SandroMachado /
Last active January 13, 2021 01:11
Script to convert all the `JPEG` images to the `WEBP` format in your Android project
# Inpiration:
# `-lossless` not used to give support for Android 4.0+
# Make sure cwebp is installed.
if ! type "cwebp" > /dev/null; then
echo "Please install cwebp to continue:"
echo "brew install webp"
exit 1
### Keybase proof
I hereby claim:
* I am SandroMachado on github.
* I am sandromachado ( on keybase.
* I have a public key whose fingerprint is 64A2 1ECB 97A1 604B D5B3 967E D630 EF06 008C 09AA
To claim this, I am signing this object: