Skip to content

Instantly share code, notes, and snippets.


soulmachine soulmachine

View GitHub Profile

Install MicroK8s on Linux

sudo snap install microk8s --classic

Check the status while Kubernetes starts

microk8s status --wait-ready

Turn on the services you want

soulmachine /
Last active Sep 21, 2021
Launch a NFS server on Proxmox

Method 1: NFS server on LXC container

Create a priviledged LXC container with:


apt update

apt install nfs-kernel-server

soulmachine /
Last active Apr 30, 2020
Install NodeJS on Debian 10
adduser node
usermod -aG sudo node

Create a new file /etc/sudoers.d/node:

node ALL=(root) NOPASSWD:ALL

Install Redis on Debian 10

Install and Configure

apt install redis-server
sudo systemctl enable redis
sudo systemctl restart redis
sudo systemctl status redis

Install MongoDB on Debian 10:

sudo apt-get install gnupg
wget -qO - | sudo apt-key add -

echo "deb buster/mongodb-org/4.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list

sudo apt-get update
soulmachine /
Last active Dec 8, 2019
Proxmox VE settings
  1. Open /etc/apt/sources.list.d/pve-enterprise.list and comment out the following line
# deb buster pve-enterprise
  1. Remove No valid subscription

    Backup proxmoxlib.js:

soulmachine / cloudSettings
Last active Aug 11, 2021
Visual Studio Code Settings Sync, for Node.js, TypeScript, Python, Go, C++ and Rust. Install this extension, fill in this gist ID, then everything will be installed automatically
View cloudSettings
soulmachine /
Created May 6, 2019
LearningRateBatchScheduler copied from experimental/resnet50_keras/
# Copied from
from absl import logging
from tensorflow.keras import backend as K
# Learning rate schedule
LR_SCHEDULE = [ # (multiplier, epoch to start) tuples
(1.0, 5), (0.1, 30), (0.01, 60), (0.001, 80)
soulmachine /
Created Jun 25, 2018 — forked from marklit/
Find the cheapest availability zone across all regions for an EC2 spot instance type
pip install sh