Skip to content

Instantly share code, notes, and snippets.

View alexellis's full-sized avatar
📖
Check out my eBook on Go

Alex Ellis alexellis

📖
Check out my eBook on Go
View GitHub Profile
@alexellis
alexellis / slow-queue-worker.yaml
Created April 22, 2020 13:18
slow-queue-worker.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: openfaas
chart: openfaas-5.6.5
component: queue-worker
heritage: Helm
release: openfaas
name: slow-queue-worker
@alexellis
alexellis / 2020-04-17-insiders.md
Last active July 16, 2020 10:21
Insiders Update: 17th Apr 2020 - My Mission for 2020

Welcome to this week's Insiders Update! Insiders gain exclusive access to early previews, tutorials, updates, news, and events on my OSS work.

✅ Subscribe today and pay whatever you want 👉 through GitHub Sponsors

Insiders Update: 17th Apr 2020 - My Mission for 2020

There was a debate on Twitter yesterday about how to make open-source projects sustainable. Andrew Randall of Kinvolk argued that companies that care about Open Source should downgrade their platinum foundation sponsorships and put 10-100K of that money towards independent open source projects, like OpenFaaS. Chris Aniszczyk was quick to criticise this suggestion as "donations" and stressed that projects must turn into businesses and develop products in order to fund themselves. Don't get me wrong: Chris is supportive of OpenFaaS and I think he has a point.

Which do you be

@alexellis
alexellis / krustlet-inlets.md
Last active November 6, 2021 17:22
krustlet-inlets

Tutorial - Connect your krustlet to any Kubernetes cluster with inlets

  • Provision a cluster on DigitalOcean Kubernetes or AKS

  • Prepare your krustlet and get its certificates

  • Create a Kubernetes secret for inlets

export TOKEN=$(head -c 16 /dev/urandom |shasum|cut -d- -f1)
@alexellis
alexellis / 2020-04-03-insiders.md
Last active July 15, 2020 08:33
Insiders Update: 3rd April 2020 - 5 years of RPi clusters and new learning materials

Welcome to this week's Insiders Update! Insiders gain exclusive access to early previews, tutorials, updates, news, and events on my OSS work.

✅ Subscribe today and pay whatever you want 👉 through GitHub Sponsors

Insiders Update: 3rd April 2020 - 5 years of RPi clusters and new learning materials

After a long day of calls and a virtual conference I took some sunshine in the garden in my new inlets hoodie, available in the store in all sizes.

@alexellis
alexellis / unicorn_server.py
Created April 1, 2020 18:11
unicorn_server.py
from flask import Flask
app = Flask(__name__)
import unicornhat as UH
import time
import os
import signal
import sys
def clear_uh():
UH.clear()
@alexellis
alexellis / go-hello-flags-env.go
Created March 5, 2020 18:53
go-hello-flags-env.go
package main
import (
"flag"
"fmt"
"os"
)
func main() {
var printUser bool
@alexellis
alexellis / 2020-02-29-insiders.md
Last active July 16, 2020 09:04
Insiders Update: 29th Feb 2020 - arkade, build your own private cloud and store.openfaas.com launched!

Welcome to this week's Insiders Update! Insiders gain exclusive access to early previews, tutorials, updates, news, and events on my OSS work.

✅ Subscribe today and pay whatever you want 👉 through GitHub Sponsors

Insiders Update: 29th Feb 2020 - arkade, build your own private cloud and store.openfaas.com launched!

Store launch

OpenFaaS Ltd has launched an OpenFaaS and Inlets SWAG store, where you can buy hoodies, t-shirts, mugs, backpacks and licenses for inlets PRO.

@alexellis
alexellis / cri-logging-example.go
Created February 23, 2020 08:34
cri-logging-example.go
package main
import (
"bufio"
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
@alexellis
alexellis / 2020-02-21-insiders.md
Last active July 16, 2020 09:04
Insiders Update: 21st Feb 2020 - business corner, vote on managed OpenFaaS, and sustainable OSS

Welcome to this week's Insiders Update! Insiders gain exclusive access to early previews, tutorials, updates, news, and events on my OSS work.

✅ Subscribe today and pay whatever you want 👉 through GitHub Sponsors

Insiders Update: 21st Feb 2020 - business corner, vote on managed OpenFaaS, and sustainable OSS

For the last week I've been taking some time out with my wife in the lovely Peak District in the UK. You may not have noticed from my Tweeting, but I'm excited to say that so far we've had a dozen orders through the OpenFaaS SWAG Store and a bulk order for 25 t-shirts to a company in Spain. My goals for this year are to build a sustainable business with multiple revenue streams, and to continue supporting and enhancing OpenFaaS, OpenFaaS Cloud and inlets.

Your vote is needed! ✅❌

@alexellis
alexellis / README.md
Last active February 8, 2021 20:50
Provision faasd 0.7.5 on DigitalOcean with Terraform 0.12.0
  1. Sign up to DigitalOcean
  2. Download Terraform
  3. Clone this gist using the URL from the address bar
  4. Run terraform init
  5. Run terraform apply -var="do_token=$(cat $HOME/digitalocean-access-token)"
  6. View the output for the login command and gateway URL i.e.
gateway_url = http://178.128.39.201:8080/
login_cmd = faas-cli login -g http://178.128.39.201:8080/ -p rvIU49CEcFcHmqxj