Skip to content

Instantly share code, notes, and snippets.

View nickcolea's full-sized avatar

Nick Colea nickcolea

View GitHub Profile
import logging
import os
import shutil
import sys
from pathlib import Path
from typing import Any, NewType, Union, Dict, List, Set
import bencodepy # type: ignore
### ---------- SETUP ---------- ###
@senseab
senseab / calico.yaml
Last active October 22, 2023 12:36
deploy calico in k3s
# Usage in k3s
# set k3s server with `--flannel-backend=none --disable-network-policy --service-cidr=10.43.0.0/16,fd01::00/112`
# restart all k3s component, containerd included.
# use this manifest with `kubectl apply -f <manifest>
# set `net.ipv6.conf.all.forwarding=1` and `net.ipv4.conf.all.forwarding=1` via sysctl
# ALL done.
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by