Skip to content

Instantly share code, notes, and snippets.

Geert Baeke gbaeke

Block or report user

Report or block gbaeke

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
View realtime-go-win.yaml
apiVersion: v1
kind: Service
metadata:
name: realtime-go
spec:
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 8080
@gbaeke
gbaeke / azureDeploy.json
Last active Mar 4, 2019
Azure AKS Deployment (for Xylos Blog)
View azureDeploy.json
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"serverAppID": {
"type": "string",
"metadata": {
"description": "ID of the server app registration (RBAC)"
}
},
@gbaeke
gbaeke / exploring-pulumi.js
Created Jan 19, 2019
Deploy storage account, share, container group with Pulumi
View exploring-pulumi.js
"use strict";
const pulumi = require("@pulumi/pulumi");
const azure = require("@pulumi/azure");
// Create an Azure Resource Group
const resourceGroup = new azure.core.ResourceGroup("resourceGroup", {
location: "WestEurope",
name: "aci-rg",
});
@gbaeke
gbaeke / run.py
Last active Dec 30, 2018
Python script to perform inference with an Azure Machine Learning scoring container for ResNet50v2
View run.py
import keras
from keras.applications.resnet50 import ResNet50
from keras.applications.resnet50 import decode_predictions
from keras.preprocessing import image
from keras.applications.resnet50 import preprocess_input
from keras.preprocessing import image as image_utils
import numpy as np
import requests
import json
View databroker
0xd263b5346f7e6b4b9b7983366be56468982594f0
View bitcoinspend.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NBitcoin;
using QBitNinja.Client;
using QBitNinja.Client.Models;
namespace ConsoleApplication1
@gbaeke
gbaeke / IoTAppDeployment.json
Created Apr 18, 2017
Azure Resource Manager template that deploys an IoT Hub, Storage Account, Function App, Dynamic web plan with Function App
View IoTAppDeployment.json
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"iotHubName": {
"type": "string",
"metadata": {
"description": "Name of the IoT Hub"
}
},
View SonosCtrl.ino
// Code requires a Sonos control API from https://github.com/jishi/node-sonos-http-api at
// SonosController IP address and port defined in request.port
// include HttpClient library in your Build project
#include "application.h"
#include "HttpClient/HttpClient.h"
int LED=D1;
int BUTTON = D0;
bool pressed;
View TemboTwilioNexmo.ino
// This #include statement was automatically added by the Particle IDE.
#include "Temboo/Temboo.h"
#include "TembooAccount.h"
int LED = D1;
int PR = A0; // photoresistor port
int BUTTON = D0; // button port
bool bright;
bool pressed;
View sonos_particle.ino
int LED = D1;
int PR = A0; // photoresistor port
int BUTTON = D0; // button port
bool bright;
bool pressed;
bool playing;
int brightness = 0; // to store the current brightness
// Sonos stuff grabbed from Hover_particle
You can’t perform that action at this time.