Skip to content

Instantly share code, notes, and snippets.

@sysbot
sysbot / micro-k8s-setup.md
Created December 19, 2023 04:19 — forked from borkmann/micro-k8s-setup.md
MicroK8s setup for Cilium

Set up microk8s with Cilium for development

Microk8s is a Canonical project to provide a kubernetes environment for local development, similar to minikube but without requiring a separate VM to manage. These instructions describe setting it up for common development use cases with Cilium and may be helpful in particular for testing BPF kernel extensions with Cilium.

Microk8s will run its own version of docker for the kubernetes runtime, so if you have an existing docker installation then this may be confusing, for instance when building images the image may be stored with one of these installations and not the other. This guide assumes you will run both docker daemon instances, and use your existing docker-ce for building Cilium while using the microk8s.docker daemon instance for the runtime of your kubernetes pods.

Requirements

@sysbot
sysbot / why-tcl.md
Created June 20, 2023 15:28 — forked from nat-418/why-tcl.md
Why Tcl?

Why Tcl?

Introduction

I use [Tcl] as my scripting language of choice, and recently someone asked me why. This article is an attempt to answer that question.

Ousterhout's dichotomy claims that there are two general categories of programming languages:

@sysbot
sysbot / README
Created June 19, 2023 21:12 — forked from jmatsushita/README
Setup nix, nix-darwin and home-manager from scratch on an M1 Macbook Pro
###
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places.
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of
###. things to watch out for:
### - Check out the `nix-darwin` instructions, as they have changed.
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026
###
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs).
# So here's a minimal Gist which worked for me as an install on a new M1 Pro.
# set an env var to the path to a config
export REGTEST_CONFIG=$HOME/.config/hsd/regtest.conf
# this assumes you have git cloned and npm installed handshake
# be sure to start your handshake node with the same config
# ./bin/hsd --config=$REGTEST_CONFIG
# the cli tools live in node_modules/.bin
# also depends on jq
(map! :map go-mode-map
:localleader
"a" #'go-tag-add
"d" #'go-tag-remove
"e" #'+go/play-buffer-or-region
"i" #'go-goto-imports ; Go to imports
(:prefix ("h" . "help")
"." #'godoc-at-point ; Lookup in godoc
"d" #'go-guru-describe ; Describe this
"v" #'go-guru-freevars ; List free variables
@sysbot
sysbot / inkscape.py
Created December 26, 2019 18:19 — forked from KelSolaar/inkscape.py
Inkscape - macOs - Absolute Path Wrapper
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Inkscape - macOs - Absolute Path Wrapper
========================================
On *macOs*, *Inkscape* requires absolute paths to work::
https://answers.launchpad.net/inkscape/+question/280575

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
@sysbot
sysbot / # emacs-plus - 2019-01-28_14-57-39.txt
Created January 28, 2019 22:57
emacs-plus (d12frosted/emacs-plus/emacs-plus) on macOS 10.14.3 - Homebrew build logs
Homebrew build logs for d12frosted/emacs-plus/emacs-plus on macOS 10.14.3
Build date: 2019-01-28 14:57:39
@sysbot
sysbot / # emacs-plus - 2019-01-28_14-55-12.txt
Created January 28, 2019 22:55
emacs-plus (d12frosted/emacs-plus/emacs-plus) on macOS 10.14.3 - Homebrew build logs
Homebrew build logs for d12frosted/emacs-plus/emacs-plus on macOS 10.14.3
Build date: 2019-01-28 14:55:12
@sysbot
sysbot / # emacs-plus - 2019-01-28_14-47-33.txt
Created January 28, 2019 22:51
emacs-plus (d12frosted/emacs-plus/emacs-plus) on macOS 10.14.3 - Homebrew build logs
Homebrew build logs for d12frosted/emacs-plus/emacs-plus on macOS 10.14.3
Build date: 2019-01-28 14:47:33