Skip to content

Instantly share code, notes, and snippets.

Burton Rheutan burtonr

Block or report user

Report or block burtonr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@burtonr
burtonr / repo-wip-scan.ps1
Last active Oct 21, 2019
Work in Progress Directory Scan
View repo-wip-scan.ps1
<#
.DESCRIPTION
Script to recursively run `git status` on all sub-directories in order to find out
if, or where, you have uncommited files. AKA: Work-in-progress.
The only pre-requisite is that git is installed.
This will work on any operating system with Powershell installed
#>
$ErrorActionPreference = 'SilentlyContinue' # Silence the "not a git repository" errors
@burtonr
burtonr / AKS and OpenFaaS
Last active Jul 29, 2019
Commands to use to create an AKS cluster and deploy OpenFaaS to it
View AKS and OpenFaaS
# Be sure to log in first!
az login
# Set the default location to avoid having to pass it on each command
az configure --defaults location=southcentralus
# Set the default subscription to avoid having to pass it on each command
az account set -s "Visual Studio Premium with MSDN"
# Create a new resource group (optional)
@burtonr
burtonr / FormResponse.cs
Created Feb 10, 2019
OpenFaaS Google Form Response Handler
View FormResponse.cs
using Newtonsoft.Json;
namespace Function
{
public class FormResponse
{
[JsonProperty("Email")]
public string Email { get; set; }
[JsonProperty("First Name")]
@burtonr
burtonr / of-kind.sh
Created Jan 20, 2019
OpenFaaS on KinD quickstart
View of-kind.sh
#!/bin/bash
echo "> Be KinD with OpenFaaS"
# First, check if docker is available
docker version | 2>/dev/null
if [ $? -ne 0 ]; then
echo "> Docker is required for running OpenFaaS on KinD"
echo "> Install with: 'curl -sLS https://get.docker.com | sudo sh'"
View store.json
[
{
"title": "Private",
"description": "OpenFaaS private function",
"image": "burtonr/pvt-tester",
"name": "pvt-tester",
"network": "func_functions"
}
]
@burtonr
burtonr / dialogflow-sample-request.json
Created Jan 6, 2018
This is a sample of the request sent to a webhook when using a Google Assistant device with speech. In this case, it was a Home Mini.
View dialogflow-sample-request.json
{
"originalRequest": {
"source": "google",
"version": "2",
"data": {
"isInSandbox": true,
"surface": {
"capabilities": [
{
"name": "actions.capability.AUDIO_OUTPUT"
You can’t perform that action at this time.