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
@beriberikix
beriberikix / QEMU_cheat_sheat.md
Last active December 21, 2023 22:12
QEMU cheat sheet for the most basic setup

Create system drive

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

Install image

Linux

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 June 27, 2024 01:08
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
@ibspoof
ibspoof / 11-cassandra-filter.conf
Last active January 6, 2021 12:23
Grok Patterns and configuration for Cassandra logs
filter {
if [type] == "cassandralog" {
grok {
break_on_match => true
match => {
"message" => [
"%{CASS_COMPACTION_LARGE_KEY}",
"%{CASS_SLAB_POOL_CLEANER_1}",
"%{CASS_SLAB_POOL_CLEANER_2}",
@andreicristianpetcu
andreicristianpetcu / ansible-summary.md
Created May 30, 2016 19:25
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of