Skip to content

Instantly share code, notes, and snippets.

View petrica's full-sized avatar

Petrică Martinescu petrica

View GitHub Profile
@petrica
petrica / Shell archive all folders
Created December 1, 2014 19:26
Archive all folders in separate archives
for n in *; do zip -r "$n.zip" "$n"; done
@petrica
petrica / livolo.py
Created October 17, 2021 09:29
Contron Livolo switches from Python using a RaspberryPi and an RF433 module
import time
import RPi.GPIO as GPIO
# BCM Port where the RF module data pin is connected
tx_pin = 24
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(tx_pin, GPIO.OUT)
high = True