Skip to content

Instantly share code, notes, and snippets.

View billpatrianakos's full-sized avatar

Moss billpatrianakos

View GitHub Profile
@billpatrianakos
billpatrianakos / lirc_pi_zero_w.txt
Last active December 16, 2023 19:20 — forked from prasanthj/lirc-pi3.txt
Getting lirc to work with Raspberry Pi Zero W (Raspbian Buster)
# Steps to get IR receiver and transmitter from Amazon [1] working on a Raspberry Pi Zero W.
$ sudo apt-get update
$ sudo apt-get install lirc
# Remove this line from /boot/config.txt
dtoverlay=lirc-rpi,gpio_in_pin=18,gpio_out_pin=17
# Add the following lines in /boot/config.txt
dtoverlay=gpio-ir,gpio_pin=23
@billpatrianakos
billpatrianakos / server-reboot
Created June 18, 2018 21:41 — forked from DanielBlanco/server-reboot
Restart resque workers after server reboot
#!/bin/bash
# This is an sample file, put a copy of this file inside /shared/bin
# I'm assuming a capistrano directory structure under /var/www/my-project/
#
# Called by crontab when the server reboots
#
# To use this file execute with root privileges:
# crontab -e
#
# then add this line: