Skip to content

Instantly share code, notes, and snippets.

View user890104's full-sized avatar

Vencislav Atanasov user890104

View GitHub Profile
#!/bin/bash
set -e
BIN_NAME=shairport-sync
BIN_SRC=/usr/bin
BINARY="${BIN_SRC}/${BIN_NAME}"
PATCH_DIR=/tmp/shairport-patch
PATCH_BIN="${PATCH_DIR}/${BIN_NAME}"
PATCH_NAME="${PATCH_DIR}/string"
@user890104
user890104 / report.c
Created March 30, 2016 07:57
Si7021 collecting and reporting data to thingspeak.com
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <linux/i2c-dev.h>
@user890104
user890104 / si7021.c
Last active September 5, 2017 08:06
Si7021 Linux app
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <linux/i2c-dev.h>
#define BYTES2SHORT(X) (X[0] << 8 | X[1])
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "joystick.h"