This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "" | |
echo "No user supplied!" | |
echo "USAGE: ./Laravel-Permissions-Fix.sh user group directory" | |
echo "" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <SPI.h> | |
#include <MFRC522.h> | |
#include <PubSubClient.h> | |
/** | |
* LED = GPIO16 | |
* RST = GPIO5 | |
* SDA(SS) = GPIO4 | |
* MOSI = GPIO13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// colors from materialui.co/colors | |
module.exports = { | |
theme: { | |
colors: { | |
'red': { | |
'50': '#ffebee', | |
'100': '#ffcdd2', | |
'200': '#ef9a9a', | |
'300': '#e57373', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// colors from materialui.co/metrocolors | |
module.exports = { | |
theme: { | |
colors: { | |
'lime': '#a4c400', | |
'green': '#60a917', | |
'emerald': '#008a00', | |
'teal': '#00aba9', | |
'cyan': '#1ba1e2', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// colors from materialui.co/flatuicolors | |
module.exports = { | |
theme: { | |
colors: { | |
'turquoise': '#1abc9c', | |
'green-sea': '#16a085', | |
'emerland': '#2ecc71', | |
'nephritis': '#27ae60', | |
'peter-river': '#3498db', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetObject", | |
"s3:PutObject", | |
"s3:ListBucket", | |
"s3:DeleteObject", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"metadata": { | |
"id": "2dd41a16-fc28-4680-a274-a850fa5f1098", | |
"publisherId": "calebporzio.better-phpunit", | |
"publisherDisplayName": "calebporzio" | |
}, | |
"name": "better-phpunit", | |
"publisher": "calebporzio", | |
"version": "1.5.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# - Does not work with empty Bitbucket repositories | |
# - Does not work if repo description contains control characters, e.g. '\r' | |
ALL_REPOS=$@ | |
# Check if any arguments were provided | |
if [[ $# -eq 0 ]]; then | |
echo "No repository name(s) provided!" 1>&2 |
OlderNewer