Skip to content

Instantly share code, notes, and snippets.

View gbaeke's full-sized avatar

Geert Baeke gbaeke

View GitHub Profile
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: certsync-csi
name: redis
labels:
app: redis
spec:
selector:
@gbaeke
gbaeke / realtime.yaml
Created October 24, 2020 19:30
YAML file with Application Gateway ingress
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redisapp
labels:
app: redis
spec:
selector:
matchLabels:
@gbaeke
gbaeke / consul-main.go
Created May 5, 2020 14:26
service and key/value from Consul
package main
import (
"log"
"net/http"
"os"
"github.com/go-redis/redis"
socketio "github.com/googollee/go-socket.io"
consulapi "github.com/hashicorp/consul/api"
apiVersion: v1
kind: Service
metadata:
name: realtime-go
spec:
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 8080
@gbaeke
gbaeke / azureDeploy.json
Last active March 4, 2019 15:09
Azure AKS Deployment (for Xylos Blog)
{
"$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 January 19, 2019 22:24
Deploy storage account, share, container group with Pulumi
"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 December 30, 2018 21:04
Python script to perform inference with an Azure Machine Learning scoring container for ResNet50v2
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
0xd263b5346f7e6b4b9b7983366be56468982594f0
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 April 18, 2017 13:38
Azure Resource Manager template that deploys an IoT Hub, Storage Account, Function App, Dynamic web plan with Function App
{
"$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"
}
},