Skip to content

Instantly share code, notes, and snippets.

View PRNDA's full-sized avatar

PRNDA(A for Auto) PRNDA

View GitHub Profile
@PRNDA
PRNDA / benchmark-commands.txt
Created September 16, 2022 15:16 — forked from jkreps/benchmark-commands.txt
Kafka Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196
@PRNDA
PRNDA / README.md
Created February 21, 2023 03:19 — forked from qdm12/README.md
Wireguard and iptables restrictions for multiple users

Wireguard and iptables restrictions for multiple users

If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.

Assumptions

This should fit most setups (not mine though 😉)

@PRNDA
PRNDA / microk8s_in_lxc.md
Created March 7, 2024 14:49 — forked from acj/microk8s_in_lxc.md
Installing microk8s in an LXC container

Installing microk8s in an LXC container

I wanted to run Microk8s on a Proxmox 6 host inside of an LXC container. These are my notes from the journey.

  1. Create a privileged LXC container through the Proxmox web interface
  • Enable nesting and FUSE
    • In Proxmox UI, select container, then Options > Features > Check nesting and FUSE boxes
  1. SSH into the Proxmox host and edit the container's config in /etc/pve/lxc/.conf
    • Add the following lines
  • lxc.apparmor.profile: unconfined
@PRNDA
PRNDA / openssh-7.4-ubuntu-16.04.sh
Created October 10, 2024 10:16 — forked from prbinu/openssh-7.4-ubuntu-16.04.sh
How to build (and install) OpenSSH 7.4 deb packages on Ubuntu-16.04
# on a fresh Ubuntu 16.04 host
sudo apt-get update
# copy the packages from https://launchpad.net/debian/+source/openssh/1:7.4p1-10+deb9u3
wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/openssh/1:7.4p1-10/openssh_7.4p1-10.dsc
wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/openssh/1:7.4p1-10/openssh_7.4p1.orig.tar.gz
wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/openssh/1:7.4p1-10/openssh_7.4p1-10.debian.tar.xz
tar -zxvf openssh_7.4p1.orig.tar.gz