Skip to content

Instantly share code, notes, and snippets.

View marcduiker's full-sized avatar
/-/

Marc Duiker marcduiker

/-/
View GitHub Profile
@marcduiker
marcduiker / readme.md
Last active June 28, 2024 15:37
Minikube with Dapr
  1. Install MiniKube
  2. Start with insecure registry minikube start
  3. New terminal: minikube dashboard
  4. minikube addons enable ingress
  5. Install Dapr dapr init -k --dev
  6. Check components: dapr components -k
  7. Check config: dapr configurations -k
  8. cd to folder with Dockerfile: minikube image build -t order-processor:latest .
  9. kubectl apply -f ..\..\deploy\redis.yaml (this includes the actor setting)
  10. kubectl apply -f ..\..\deploy\order-processor-csharp.yaml
@marcduiker
marcduiker / recursion.md
Last active June 2, 2023 10:15
Poetry for Programmers

Recursion

function recursion() {
    // Forever repeating
    // Getting one step closer every time
    // Each iteration is a new chance
    // of getting nearer to the goal
 // Infinity won't be reached
@marcduiker
marcduiker / webmidi.html
Last active May 25, 2023 21:53
WebMidi API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>onmidimessage</title>
<script type="module">
@marcduiker
marcduiker / devto_analytics.http
Last active June 29, 2022 08:37
Various dev.to analytics endpoints to get the reactions and pageviews for articles or an organization.
@apiKey=DEVTO_APIKEY
@orgId=DEVTO_ORGANIZATION_ID
@articleId=DEVTO_ARTICLE_ID
### Get historical analytics per day for an article since the given start date.
GET https://dev.to/api/analytics/historical?start=2022-05-01&article_id={{articleId}}
api-key: {{apiKey}}
### Get total (aggregate) analytics for an article.
https://dev.to/api/analytics/totals?article_id={{articleId}}
@marcduiker
marcduiker / frauddetectiondemo.md
Last active September 13, 2021 19:07
Fraud Detection Demo

Fraud Detection Demo

  • [] Start Azurite Services
  • [] Start CosmosDB Emulator
  • [] Start Function App
  • [] Start ngrok .\ngrok.exe http 7071 --host-header localhost
  • [] Update GitHub secret with ngrok url ending with api/FraudResultWebhookClient
  • [] Use REST client to trigger HTTP client
@marcduiker
marcduiker / panel_discussion.md
Last active August 15, 2021 17:32
ServerlessDays Student Edition

ServerlessDays Student Edition

Panel Discussion

Q: What is serverless/how you use it in your job

  • What is a server? => hardware or software that can run code.
    • Full control over the server.
    • Great if you need a lot of control over the environment, need to install runtimes & applications.
  • What is serverless? => Worry about servers less.
@marcduiker
marcduiker / mygoal.md
Last active September 16, 2021 13:20
My goal

Goal

EN: My goal is to make technology accessible for people who are less visible in tech in order to increase their impact on the world.

NL: Mijn doel is om technologie toegankelijk te maken voor mensen die minder zichtbaar zijn in tech om daarmee hun impact op de wereld te vergroten.

@marcduiker
marcduiker / tagline.md
Last active November 2, 2021 15:07
Bio Tagline & Avatar

Marc Duiker

Profile

I ❤ Serverless, DevCommunity, and Creative Coding!


Marc is a Sr Developer Advocate at Ably with a strong focus on event-driven architectures in the Azure cloud. He loves helping developers to achieve more every day.

@marcduiker
marcduiker / weekly-pixel-art-challenge.md
Last active June 12, 2021 19:34
Weekly Pixel Art Challenge