Skip to content

Instantly share code, notes, and snippets.

View BobyMCbobs's full-sized avatar
🎷
sax for your soul

Caleb Woodbine BobyMCbobs

🎷
sax for your soul
View GitHub Profile
@aojea
aojea / README.md
Last active July 27, 2024 03:15
kube-proxy nftables and iptables vs a Service with 100k endpoints

kube-proxy nftables and iptables vs a Service with 100k endpoints

Background

Iptables performance is limited mainly by two reasons:

The kernel community moved to nftables as replacement of iptables, with the goal of removing the existing performance bottlenecks. Kubernetes has decided to implement a new nftables proxy because of this and another reasons explained in more detail in the corresponding KEP and during the Kubernetes Contributor Summit in Chicago 2023 on the session [Iptables, end of

Shader "Unlit/PolyRhythmVisualizer" {
Properties {
_TimeCode ("Input Time", Float) = 0
_OuterRingFreq ("Outer Ring Frequency", Float) = 1
_InnerRingFreq ("Inner Ring Frequency", Float) = 0.922
_RingCount ("Ring Count", Int) = 35
_VibrantFreq ("Vibrant Frequency", Float) = 2
_Vibrant ("Vibrant", Range(0, 1)) = 0.5
_Decay ("Decay", Range(0, 10)) = 2
[Header(Cosine Gradiant)]
import tweepy, json, time, sys
auth = tweepy.OAuth1UserHandler(
<api keys here>
)
api = tweepy.API(auth)
d = json.loads(open(sys.argv[1]).read().split("=", 1)[1])
# pretty sudo prompt
read -r -d '' SUDOPROMPT << EOM
πŸŒΊπŸŒ³πŸŒΈπŸŒ·πŸŒ·πŸŒΈπŸŒ»πŸŒ·πŸŒ·πŸŒΈπŸŒΈπŸŒΈπŸŒΈπŸŒ·πŸŒΌπŸŒ·πŸŒ³πŸŒΊπŸŒΌπŸŒΊπŸŒΈπŸŒ»πŸŒΌπŸŒΌπŸŒ³πŸŒ³πŸŒΌπŸŒΊπŸŒ»πŸŒ·πŸ›πŸŒ·πŸŒΌπŸŒ»πŸŒ³πŸŒΈπŸŒ·πŸŒ·πŸŒ»πŸŒΈ
πŸŒΈπŸ¦‰πŸŒ»πŸŒΈπŸŒ³πŸŒ·πŸŒΈπŸŒ·πŸŒΈπŸŒ³πŸŒΈπŸŒ»πŸŒ³πŸŒπŸŒ»πŸŒ·πŸŒ·πŸŒΌπŸŒ»πŸŒΊπŸŒΊπŸŒ»πŸŒΌπŸŒ»πŸŒ»πŸŒΌπŸŒΊπŸŒ»πŸŒ³πŸŒΌπŸŒ³πŸŒΊπŸŒ³πŸŒ·πŸŒ»πŸŒΌπŸŒ·πŸŒΌπŸŒ»πŸŒΈ
🌳🌸🌻🌺🌻🌳🌺🌺🌻🌺🌸🌻🌷🌷🌼🌻🌺🌼🌻🌻🌷🌳🌻🌸🌳🌷🌻🌳🌳🌳🌳🌼🌳🌳🌺🌷🌳🌺🌳🌺
πŸ¦‰πŸŒΈπŸŒ»πŸŒΊπŸŒΊπŸŒ³πŸŒΈπŸŒΈπŸŒΌπŸŒ»πŸŒΊπŸŒΌπŸŒ·πŸŒΈπŸŒ³πŸŒΌπŸŒΊπŸŒΈπŸŒΊπŸŒ·πŸŒ»πŸŒ·πŸŒΊπŸŒΊπŸŒ³πŸŒ·πŸŒ·πŸ°πŸŒΈπŸŒ»πŸŒ³πŸŒΈπŸŒΌπŸŒ·πŸŒΌπŸŒ³πŸŒ·πŸΉπŸŒΌπŸŒΊ
🌷🌳🌻🌸🌸🌼🐰🌷🌺🌷🌺🌻🌷🌸🌺🌻🌳🌻🌷🌻🌻🌺🌸🌸🌺🌻🌸🌻🌳🌳🌻🐦🌻🌼🌼🌻🌻🌺🌳🐰
πŸŒΌπŸ¦πŸŒ»πŸŒ³πŸŒΈπŸŒΈπŸŒ³πŸŒ·πŸŒΊπŸŒΌπŸŒ³πŸŒ·πŸŒΈπŸŒ»πŸŒΌπŸŒ»πŸ›πŸŒ»πŸŒΌπŸŒ·πŸŒΊπŸŒΌπŸŒΊπŸŒΈπŸŒΊπŸ¦”πŸŒ·πŸŒΈπŸŒ·πŸŒ»πŸŒ»πŸŒΊπŸŒΌπŸŒ·πŸŒπŸŒΈπŸŒ·πŸŒΌπŸŒΈπŸΉ
🌸🌳🌻🌼🌻🌳🌸🌷🌺🌷🌷🌼🌻🌷🌻🌺🌼🌼🌳🌸🌻🌻🌸🌼🌼🌸🌳🌺🌻🌻🌳🌺🌷🐰🌻🌼🐹🌷🌷🌳
🌼🌷🌻🌸🌼🌳🌻🌻🌳🌷🌼🌻🌺🌺🌺🌺🌺🌳🌻🌼🌷🌸🌸🌻🌺🌻🌳🌸🌷🌺🌺🌼🌸🌺🌻🌻🌷🌸🌻🌷
@sorenvonsarvort
sorenvonsarvort / a-infinality-w10-config.sh
Last active June 2, 2023 22:41
windows-10-like-font-rendering-config-for-linux
# make sure You have installed the infinality patches
export INFINALITY_FT_FILTER_PARAMS="8 17 50 17 8"
export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH="0"
export INFINALITY_FT_FRINGE_FILTER_STRENGTH="55"
export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH="0"
export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH="0"
export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH="20"
export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH="0"
export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH="0"
@PatrickLang
PatrickLang / README.md
Last active March 4, 2023 05:49
Setting up a multi-arch Kubernetes cluster on ODroid HC-1 and Pine64 Rock64
@sdkks
sdkks / README.md
Last active March 5, 2024 06:17
How to SSH to Kubernetes Pod with SSH ProxyCommand using socat

Requirements

  1. socat
  2. kubectl with proper ~/.kube/config that can connect to your cluster
  3. Working knowledge of kubectl client
  4. OpenSSH client

How does it work?

  1. kubectl does port forwarding to sshd port of your pod. I'm using pm2 process managed to keep my services alive in my workstation container. If you have only sshd, easiest to use is dropbear
  2. ProxyCommand of OpenSSH client uses socat to redirect two way fd - to forwarded port of kubectl
  3. Voila! You are in
@jgsqware
jgsqware / kubeadm-install-offline.md
Last active January 22, 2025 09:34
Offline Kubeadm install

On master and nodes

Pull images form internet access laptop

docker pull gcr.io/google_containers/kube-apiserver-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-controller-manager-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-proxy-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-scheduler-amd64:v1.5.0
docker pull weaveworks/weave-npc:1.8.2
docker pull weaveworks/weave-kube:1.8.2
@JonathanMH
JonathanMH / index.js
Created October 22, 2016 15:07
JSON Web Token Tutorial: Express
// file: index.js
var _ = require("lodash");
var express = require("express");
var bodyParser = require("body-parser");
var jwt = require('jsonwebtoken');
var passport = require("passport");
var passportJWT = require("passport-jwt");
@btcdrak
btcdrak / openpgp-card-guide.md
Created September 1, 2016 21:31 — forked from ageis/openpgp-card-guide.md
Quick GPG Smartcard Guide

Quick GPG Smartcard Guide

We will generate a master key with only the Certify capability and three subkeys with each of the Sign, Encrypt and Authenticate capabilities. These latter three keys are meant for daily use and will be transferred to an OpenPGP smartcard, which has three corresponding slots. The master private key can then be moved to offline cold storage, or stored on a second smartcard.

We are generating keys on a secure computer instead of on the card, because it allows more flexibility. Ideally this means a machine running Tails or one that is air-gapped and not connected to the internet.

This guide assumes that if you want to sign other peoples keys, then you will require the aforementioned secondary smartcard with your master key stored in its Signature slot, or if you only have one smartcard, then you'll have to fetch the master key out of cold storage. By default, GPG generates a master key with the Certify and