Skip to content

Instantly share code, notes, and snippets.

View Lzok's full-sized avatar

Leandro Echevarria Lzok

  • Andromeda
View GitHub Profile
@Lzok
Lzok / cluster-leds.py
Last active March 22, 2023 23:09
Script to be used in my Raspberry Pi 4 cluster to show information about CPU Load, Ram Load and CPU Temperature.
#!/usr/bin/env python3
"""
=============== DISCLAIMER ===================
The original library (blinkt) belongs to Pimoroni Company.
https://github.com/pimoroni/blinkt.
I just adapted some examples to meet my needs.
=============== END DISCLAIMER ===============
@Lzok
Lzok / git-delete-branches.md
Last active July 1, 2019 13:29
Scripts to delete git branches locally and remotely. Except master, development and others.

Note

The following commands were tested in MacOS. Not yet in Linux.

Delete branches locally

Delete all local branches except master, development and the current branch (in this example). You can add as many branches as you want in the regex.

cd into-the-desired-repo
git branch | egrep -v "(master|development|\*)" | xargs git branch -D