Skip to content

Instantly share code, notes, and snippets.

View luxas's full-sized avatar
🎓
Studying at Aalto University; I'm not working at the moment

Lucas Käldström luxas

🎓
Studying at Aalto University; I'm not working at the moment
View GitHub Profile
@mcastelino
mcastelino / Trying Kata Containers with Firecracker (and QEMU).md
Last active December 9, 2020 11:24
Trying Kata Containers with Firecracker (and QEMU)

Trying Kata Containers with Firecracker (and QEMU)

asciicast

Clearlinux bundles Kata Containers as well a firecracker.

To quickly experience how Kata Containers can be used to setup a cluster that can run Kubernetes with different types of isolation mechanisms we have created a simple developer enviornment. With this you can run workloads with runc (using cgroups, namespaces provided by the host kernel for isolation), Kata with QEMU/KVM (uses VT-x for isolation and QEMU as the hypervisor) and Kata with Firecracker (uses VT-x for isolation and the minimal Firecracker VMM).

@detiber
detiber / FUTURE.md
Last active December 8, 2023 07:34
HA kubeadm Cluster - Stacked Control Plane

Thoughts on future Kubeadm work required to streamline experience

Currently the kubeadm config and workflow is centered around a single control plane node and any number of worker nodes. This requires additional workarounds when trying to bootstrap and manage clusters with an HA control plane. I believe there is a path forward that would help streamline the effort required to stand up a fully managed HA control plane including etcd.

  • Etcd Config Changes
    • Modify the local etcd config to have an additional parameter for exposing etcd ports or to expose the ports by default
    • Add a attribute to override the exposed advertised ip, preferably by choosing an interface to use for detection
  • Make API Server Load Balancer config more explicit instead of just overriding the api config
    • Add new attribute to specify a load balancer, which will implicitly set the api config if not explicitly set
  • Control Plane join/extend workflow

RaspberryPi SDIO

Spec

  • BCM2835 ha two sdhost controllers.
  • 1 sdhci : Arasan sdhci controller (SD / SDIO)
  • 2 sdhost : custom sdhost controller (SD only, but better performance)
  • RPi1 use sdhci for SD slot.
  • RPi3 use sdhost for SD slot. RPi3 use sdhci for Wi-Fi.

pin

@tomwwright
tomwwright / gist:f88e2ddb344cf99f299935e1312da880
Last active November 22, 2022 14:06
Dell XPS 15 9560: Ubuntu 17.10 + Nvidia 384.90 + Nvidia Prime (No Bumblebee) https://medium.com/@tomwwright/better-battery-life-on-ubuntu-17-10-4588b7f72def
# perform a fresh install of Ubuntu 17.10
# upgrade the kernel to v4.13.10
mkdir ~/kernel-v4.13.10
cd ~/kernel-v4.13.10
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310_4.13.10-041310.201710270531_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-image-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb
sudo dpkg -i *.deb
@dungvtdev
dungvtdev / CAP.md
Last active January 13, 2021 09:33
CAP Theorem distributed system.

CAP Theorem: Revisited

Written by Robert Greiner on August 14, 2014

The CAP Theorem states that, in a distributed system (a collection of interconnected nodes that share data.), you can only have two out of the following three guarantees across a write/read pair: Consistency, Availability, and Partition Tolerance - one of them must be sacrificed. However, as you will see below, you don’t have as many options here as you might think.

Consistency - A read is guaranteed to return the most recent write for a given client. Availability - A non-failing node will return a reasonable response within a reasonable amount of time (no error or timeout). Partition Tolerance - The system will continue to function when network partitions occur.

@Brainiarc7
Brainiarc7 / VAAPI-hwaccel-encode-Linux-Ffmpeg&Libav-setup.md
Last active March 26, 2024 18:18
This gist contains instructions on setting up FFmpeg and Libav to use VAAPI-based hardware accelerated encoding (on supported platforms) for H.264 (and H.265 on supported hardware) video formats.

Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav

Hello, brethren :-)

As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".

@luxas
luxas / BuildArchLinuxARM.sh
Last active July 12, 2016 05:31
Raspberry Pi Arch Linux ARM builder from source to SD Card. One command install.
#!/bin/bash
#
# This is a script for writing the latest Arch Linux ARM files to a SD Card
#
# Based on this tutorial
# http://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2
#
# Usage:
# sudo sh BuildArchLinuxARM.sh [your sd card here]
#
@kachayev
kachayev / concurrency-in-go.md
Last active March 11, 2024 11:27
Channels Are Not Enough or Why Pipelining Is Not That Easy