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 / 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
@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 / 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 / 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 / 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 / tailwind.config.js
Created February 22, 2020 07:29
Tailwind Flat UI Colors
// colors from materialui.co/flatuicolors
module.exports = {
theme: {
colors: {
'turquoise': '#1abc9c',
'green-sea': '#16a085',
'emerland': '#2ecc71',
'nephritis': '#27ae60',
'peter-river': '#3498db',
@brysonreece
brysonreece / tailwind.config.js
Created February 22, 2020 07:30
Tailwind Social Colors
// colors from materialui.co/socialcolors
module.exports = {
theme: {
colors: {
'facebook': '#3b5999',
'messenger': '#0084ff',
'twitter': '#55acee',
'linkedin': '#0077b5',
'skype': '#00aff0',
@brysonreece
brysonreece / tailwind.config.js
Created February 22, 2020 07:34
Tailwind Metro Colors
// colors from materialui.co/metrocolors
module.exports = {
theme: {
colors: {
'lime': '#a4c400',
'green': '#60a917',
'emerald': '#008a00',
'teal': '#00aba9',
'cyan': '#1ba1e2',
@brysonreece
brysonreece / tailwind.config.js
Created February 22, 2020 08:23
Tailwind HTML Colors
// colors from materialui.co/htmlcolors
module.exports = {
theme: {
colors: {
'gainsboro': '#dcdcdc',
'light-gray': '#d3d3d3',
'silver': '#c0c0c0',
'dark-gray': '#a9a9a9',
'gray': '#808080',
@brysonreece
brysonreece / policy.json
Last active October 22, 2020 04:40
Example Laravel S3 IAM Policy
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:ListBucket",
"s3:DeleteObject",