Download arkade, then crane:
curl https://get.arkade.dev | sudo sh
sudo -E arkade oci install ghcr.io/openfaasltd/vmmeter:latest --path /usr/local/bin/
Start the vmmeter in the background:
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"os" | |
"reflect" | |
"time" |
From my blog post: The Internet is my computer
Run hosted VSCode on Equinix Metal's huge: AMD Epyc instances with 64GB RAM and 24 Cores, coupled with a bonded 2 x 10 Gbps uplink to the Internet.
The version of containerd
that OpenFaaS
will download during the
installation doesn't support cgroup v2, so we need to configure
systemd
to avoid using the Unified cgroup Hierarchy, and reboot the
system:
#! /bin/sh | |
# Alex Ellis 18th Nov 2020 | |
# Updated for the 1U unit, which has 7 fans | |
logo () { | |
echo "" | |
echo " ▄██▄" | |
echo " ▄█ █▄" | |
echo " ▄█ █▄" |
#!/bin/bash | |
set -e | |
CH=latest | |
echo Installing Server 1 | |
k3sup install --user pi --ip 192.168.2.147 \ | |
--k3s-channel $CH \ | |
--cluster \ |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:AuthorizeSecurityGroupIngress", | |
"ec2:DescribeInstances", | |
"ec2:DescribeImages", |
Add this to your user-data field in the EC2 console | |
It creates a new user i.e. "alex" with the SSH key specified. | |
Then: `k3sup install --ip $IP --user alex` | |
```yaml | |
Content-Type: multipart/mixed; boundary="//" | |
MIME-Version: 1.0 |
from flask import Flask | |
app = Flask(__name__) | |
import sys | |
import blinkt | |
blinkt.set_clear_on_exit(False) | |
def print_color(r,g,b): | |
print('Setting Blinkt to {r},{g},{b}'.format(r=r, g=g, b=b)) |