Skip to content

Instantly share code, notes, and snippets.

Avatar
🎲
Gambling with life.

Petrică Martinescu petrica

🎲
Gambling with life.
View GitHub Profile
@petrica
petrica / Shell archive all folders
Created Dec 1, 2014
Archive all folders in separate archives
View Shell archive all folders
for n in *; do zip -r "$n.zip" "$n"; done
@petrica
petrica / livolo.py
Created Oct 17, 2021
Contron Livolo switches from Python using a RaspberryPi and an RF433 module
View livolo.py
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