Skip to content

Instantly share code, notes, and snippets.

View petrica's full-sized avatar

Petrică Martinescu petrica

View GitHub Profile
petrica / Shell archive all folders
Created December 1, 2014 19:26
Archive all folders in separate archives
View Shell archive all folders
for n in *; do zip -r "$" "$n"; done
petrica /
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.setup(tx_pin, GPIO.OUT)
high = True