Skip to content

Instantly share code, notes, and snippets.

View rrgarciach's full-sized avatar

Ruy R. Garcia rrgarciach

View GitHub Profile
@rrgarciach
rrgarciach / RaspberryPi-RFID
Created August 27, 2017 19:46 — forked from mattgorecki/RaspberryPi-RFID
Python script to read RFID card from serial RFID reader attached to a Raspberry Pi. Also has a Exit button. The card swipe releases the maglock on the door.
#!/usr/bin/python2
import serial
import re, sys, signal, os, time, datetime
import RPi.GPIO as GPIO
BITRATE = 9600
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7, GPIO.OUT)
GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP)
@rrgarciach
rrgarciach / Dockerfile
Created June 11, 2018 04:09
Go HTTP server example
FROM golang:alpine
ADD ./src /go/src/app
WORKDIR /go/src/app
ENV PORT=3001
CMD ["go", "run", "main.go"]