This file contains hidden or 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
// This #include statement was automatically added by the Particle IDE. | |
#include "AzureMobileService/AzureMobileService.h" | |
// This #include statement was automatically added by the Particle IDE. | |
#include "SparkFun_Photon_Weather_Shield_Library/SparkFun_Photon_Weather_Shield_Library.h" | |
//Azure Mobile Service Configuration | |
#define MYSERVICE "soilmonitor" | |
#define MYKEY "FINDTHISKEYINAZUREPORTAL" | |
AzureMobileService ams; |
This file contains hidden or 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
/*------------------------------------------------------------------------- | |
Spark Core and Photon library to control WS2811/WS2812 based RGB | |
LED devices such as Adafruit NeoPixel strips. | |
Currently handles 800 KHz and 400kHz bitstream on Spark Core and Photon, | |
WS2812, WS2812B and WS2811. | |
Also supports: | |
- Radio Shack Tri-Color Strip with TM1803 controller 400kHz bitstream. | |
- TM1829 pixels | |
This file contains hidden or 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
/*------------------------------------------------------------------------- | |
Spark Core and Photon library to control WS2811/WS2812 based RGB | |
LED devices such as Adafruit NeoPixel strips. | |
Currently handles 800 KHz and 400kHz bitstream on Spark Core and Photon, | |
WS2812, WS2812B and WS2811. | |
Also supports: | |
- Radio Shack Tri-Color Strip with TM1803 controller 400kHz bitstream. | |
- TM1829 pixels | |
This file contains hidden or 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/sh | |
# adblocker.sh - by Todd Stein ([email protected]), Saturday, October 25, 2014 | |
# for use on routers running OpenWRT firmware | |
# Periodically download lists of known ad and malware servers, and prevents traffic from being sent to them. | |
# This is a complete rewrite of a script originally written by teffalump (https://gist.github.com/teffalump/7227752). | |
HOST_LISTS=" |
This file contains hidden or 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 | |
#Quake on Bash on Ubuntu on Windows | |
[[ `id -u` -eq 0 ]] || { echo "Must be root to run script, try running again with sudo"; exit 1; } | |
#ensure Xming is installed | |
if [ -f "/mnt/c/Program Files (x86)/Xming/Xming.exe" ] | |
then | |
echo "XMing is installed on Windows Filesystem, please ensure that it is running"; | |
else |
This file contains hidden or 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
******* | |
Prereqs | |
******* | |
Install Jekyll as per http://biserkov.com/blog/2016/06/04/Steps-to-install-Jekyll-on-Ubuntu-on-Windows/ | |
Install the azure xplat-cli https://azure.microsoft.com/en-us/documentation/articles/xplat-cli-install/ | |
enable DBUS in BoUoW : sudo sed -i 's$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$' /etc/dbus-1/session.conf | |
******* |
This file contains hidden or 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
# WELCOME TO SQUID 3.5.12 | |
# ---------------------------- | |
# | |
# This is the documentation for the Squid configuration file. | |
# This documentation can also be found online at: | |
# http://www.squid-cache.org/Doc/config/ | |
# | |
# You may wish to look at the Squid home page and wiki for the | |
# FAQ and other documentation: | |
# http://www.squid-cache.org/ |
This file contains hidden or 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
<form action="URL_TO_YOUR__AZURE_FUNCTION (will look something like this: https://MYFUNCTIONDOMAIN.azurewebsites.net/api/FUNCTIONNAME?code=TMU4yAbRxEPq8/aHAjW2naiGYp27ja6rJYUQahSSRbbjkPP5NoYkfg==" method="POST"> | |
<script | |
src="https://checkout.stripe.com/checkout.js" class="stripe-button" | |
data-key="pk_live_YOUR_STRIPE_KEY" | |
data-image="images/marketplace.png" | |
data-name="My Online business" | |
data-description="1-Week Subscription Plan" | |
data-amount="350" | |
data-label="Sign Up Now For Only Tree-Fiddy!"> | |
</script> |
This file contains hidden or 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
module.exports = function (context, req) { | |
context.log('JavaScript HTTP trigger function processed a request.'); | |
var stripe = require('stripe')(process.env.StripeSecret); | |
var qs = require('querystring'); | |
var post = qs.parse(req.body); | |
//create a plan - technically this code only needs to ever be ran one-time to create the initial plan |
This file contains hidden or 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 | |
cat /dev/null > output.txt | |
for x in {a..z} | |
do | |
for y in {a..z} | |
do | |
echo -n aka.ms/$x$y, >> output.txt | |
curl aka.ms/$x$y | grep "href=" | cut -d'"' -f2 >> output.txt |