Skip to content

Instantly share code, notes, and snippets.

View brysonreece's full-sized avatar
🐛
Creating new bugs

Bryson Reece brysonreece

🐛
Creating new bugs
View GitHub Profile
@brysonreece
brysonreece / tailwind.config.js
Created February 22, 2020 07:28
Tailwind Material Design Colors
// colors from materialui.co/colors
module.exports = {
theme: {
colors: {
'red': {
'50': '#ffebee',
'100': '#ffcdd2',
'200': '#ef9a9a',
'300': '#e57373',
@brysonreece
brysonreece / tools.c
Last active February 22, 2020 07:27 — forked from anonymous/gist:b72e2737f1b58a0dd24eb8bffacdc616
Particle Boron getSystemStatus() Tools
/*
* Particle leaves it to the datasheet to explain.
*
* http://www.ti.com/lit/ds/symlink/bq24195.pdf
* page 32.
*/
int vbus_status(systemStatus)
{
vbus = (systemStatus >> 6) & 3;
@brysonreece
brysonreece / esp8266-mqtt-nfc-auth.ino
Last active October 10, 2018 00:58
Sends a MQTT packet to a subscribed topic after authenticating with a known NFC tag using the MFRC522 Reader
#include <ESP8266WiFi.h>
#include <SPI.h>
#include <MFRC522.h>
#include <PubSubClient.h>
/**
* LED = GPIO16
* RST = GPIO5
* SDA(SS) = GPIO4
* MOSI = GPIO13
@brysonreece
brysonreece / Laravel-Permissions-Fix.sh
Last active May 23, 2017 08:33
Fixes file permissions for a Laravel instance
#!/bin/bash
if [ -z "$1" ]
then
echo ""
echo "No user supplied!"
echo "USAGE: ./Laravel-Permissions-Fix.sh user group directory"
echo ""
exit 1
fi
@brysonreece
brysonreece / hhaQuickStart.sh
Last active February 2, 2016 05:12
A Quick-Setup Script for OU-Innovation-HHA
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Argh! You're not root! Walk the plank!"
exit
fi
printf "Please wait, installing packages..."
# Add OpenHAB to our downloadable package list