Skip to content

Instantly share code, notes, and snippets.

View lanefu's full-sized avatar
🏅
outstanding achievement in the field of excellence

lanefu

🏅
outstanding achievement in the field of excellence
View GitHub Profile
@marvkis
marvkis / KubeVirt_on_Rock5B.md
Created March 23, 2024 19:38
Running KubeVirt.io on a Rock5 Model B

Introduction

I was playing around with kubevirt.io (v1.2.0) on a Radxa ROCK 5 Model B. When I tried to boot a VM, I just had the qemu-kvm process eating 100% CPU with no output to the console.

I built an alternative setup based on ubuntu 22.04 and qemu worked with KVM without any problems. After some investigation I had the idea that it might be related to the (U)EFI bios used. I transferred the /usr/share/AAVMF/AAVMF_CODE.fd files from the 22.04 setup into the kubevirt compute container, started an additional qemu-kvm with -bios AAVMF/AAVMF_CODE.fd and voila - KVM booted correctly.

Findings

My findings so far:

@beriberikix
beriberikix / QEMU_cheat_sheat.md
Last active July 10, 2024 09:20
QEMU cheat sheet for the most basic setup

Create system drive

qemu-img create -f qcow2 alpine.qcow2 16G

Install image

Linux

@hydrz
hydrz / install.sh
Last active August 24, 2024 16:55
High Availability K3s and Kube-vip with Cilium
#!/bin/sh
set -e
set -o noglob
# Usage: ./install.sh [options]
#
# Example:
# Installing on first master node run:
# ./install --num 3 --vip 192.168.2.10 --iface eth0
# Installing on other master nodes run:
job "frontend" {
datacenters = ["humblelabvm"]
group "frontend" {
network {
mode = "bridge"
port "web" {
to = 80
}
}
#! /bin/bash
# Information came from https://apple.stackexchange.com/questions/358651/unable-to-completely-uninstall-zoom-meeting-app
# I just added more stuff to delete so there is no manual stuff to execute.
echo Zoom cleanup 🧹
echo Cleaning Application Cached Files...
sudo rm -rf ~/Library/Application\ Support/zoom.us
sudo rm -fr ~/Library/Application\ Support/ZoomPresence
echo Cleaning Application...
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active September 19, 2024 03:25
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@sau-lanvy
sau-lanvy / kubernetes-cluster-using-kubespray.md
Last active January 19, 2024 17:27
Deploy a Production Ready Kubernetes Cluster using Kubespray with Ansible

Deployment Architecture

deployment architecture

System Configuration

  1. All kubernetes nodes: set SELINUX to permissive mode
$ vi /etc/selinux/config
SELINUX=permissive

$ setenforce 0
@zegelin
zegelin / qemu CPU pin
Last active January 19, 2023 16:45
QEMU systemd/SSH
qemu-system-x86_64(16858) threads:
{qemu-system-x86}(16859): 0-3,24-27
{IO io1}(16860): 0-3,24-27
{IO mon_iothread}(16872): 0-3,24-27
{CPU 0/KVM}(16873): 4
{CPU 1/KVM}(16874): 28
{CPU 2/KVM}(16875): 5
{CPU 3/KVM}(16876): 29
{CPU 4/KVM}(16877): 6
{CPU 5/KVM}(16878): 30
@kashimAstro
kashimAstro / README.md
Last active May 5, 2021 17:47
H3 / Mali GPU driver and openframeworks armv7 ES / ES2

#A small guide to compile openFrameworks armv7 with driver OpenGL ES / ES2 sunxi for H3 / Mali GPU on ARMBIAN OS, compatible with orangepi and bananapi.

tested on: orangepi one banana pi M2

dependencies:

apt-get install libx11-dev libxext-dev xutils-dev libdrm-dev \ 
           x11proto-xf86dri-dev libxfixes-dev x11proto-dri2-dev xserver-xorg-dev \
 build-essential automake pkg-config libtool ca-certificates git cmake subversion