Skip to content

Instantly share code, notes, and snippets.

#include <SoftwareSerial.h>
#define CARD_CODE_LENGTH 10
const int ledPin = 2;
const int doorLock = 4;
const int txPin = 6;
const int rxPin = 8;
int byteRead = 0;
int bytesRead = 0;
@KonradIT
KonradIT / readme.md
Last active December 4, 2025 22:25
GoPro Studio for Linux
@AGWA
AGWA / rpi-hdmi.sh
Last active January 10, 2025 16:18
Enable and disable the HDMI port on the Raspberry Pi: `rpi-hdmi on` to turn on, `rpi-hdmi off` to turn off. X is properly reinitialized when re-enabling.
#!/bin/sh
# Enable and disable HDMI output on the Raspberry Pi
is_off ()
{
tvservice -s | grep "TV is off" >/dev/null
}
case $1 in
@julianduque
julianduque / 00-README.md
Last active January 14, 2023 23:11
Primus + MQTT + Arduino == Internet of Things!

Primus + MQTT + Arduino == Internet of Things!

LCD Shield

Server

  1. Install dependencies
$ npm install
@dpslwk
dpslwk / LLAPSend.py
Last active December 19, 2015 09:59
Very simple Python script to send first argument over serial Usage: ./LLAPSend.py "a--HELLO----"
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import serial
import sys
import time
port = '/dev/ttyAMA0'
baud = 9600
@matbor
matbor / 00readme.md
Last active April 23, 2017 18:03
Onewire Temperatures to mqtt broker server.Have modified the onewire example program so that no mater how many sensors u have plugged in it will always publish each reading to my MQTT broker server. It will use the onewire sensor ROM ID as part of the topic, ie. /house/arduino/[DEVICE ID/temperature/current and the message payload will be the Ce…
@altuzar
altuzar / gist:5876873
Last active December 19, 2015 01:38
Install OpenERP 7 on Digital Ocean
#!/bin/sh
# Install OpenERP 7 on Digital Ocean
# Fernando Altuzar
# Modified script from Carlos E. Fonseca Zorrilla & Mario Gielissen
# First: Create a Droplet with CentOS 32 bits
# Then:
yum -y install wget unzip
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-6.noarch.rpm
@azbesthu
azbesthu / get-kernel-source.sh
Last active July 3, 2020 12:01
get kernel source for current rpi raspbian wheezy kernel
#!/bin/bash
REV=`zcat /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz | grep '* firmware as of' | head -n 1 | sed -e 's/\ \*\ firmware as of \(.*\)$/\1/'`
rm -rf rasp-tmp
mkdir -p rasp-tmp
mkdir -p rasp-tmp/linux
wget https://raw.github.com/raspberrypi/firmware/$REV/extra/git_hash -O rasp-tmp/git_hash
wget https://raw.github.com/raspberrypi/firmware/$REV/extra/Module.symvers -O rasp-tmp/Module.symvers