Skip to content

Instantly share code, notes, and snippets.

View lukassup's full-sized avatar
🍕

Lukas Šupienis lukassup

🍕
View GitHub Profile
tap "esolitos/ipa"
tap "hashicorp/tap"
tap "homebrew/bundle"
tap "homebrew/services"
brew "automake"
brew "awscli"
brew "bash-completion@2"
brew "node"
brew "bitwarden-cli"
brew "pkg-config"

Kubernetes - setup IPVS

(OPTIONAL): This is already done in Ansible scripts if using https://github.com/lukassup/libvirt-istiolab-tf

NOTE: KubeProxy config can be passed to kubeadm init.

kubectl edit configmap -n kube-system kube-proxy
@lukassup
lukassup / setup-pw.sh
Last active October 6, 2023 07:59
Low latency for Reaper on PipeWire
#!/bin/sh
# Reaper reports latency of 4ms with this config.
#
# It may also be a good idea to use "Pro Audio" audio profile
#
# $ pactl list short cards
# $ pactl set-card-profile YOUR_CARD_NAME pro-audio
#
@lukassup
lukassup / show_vlan_json.py
Created September 4, 2023 15:02
SONiC scripts
#!/usr/bin/env python3
import json
from utilities_common.db import Db
def get_vlan_info():
db = Db()
vlan_data = db.cfgdb.get_table('VLAN')
vlan_ip_data = db.cfgdb.get_table('VLAN_INTERFACE')
vlan_ports_data = db.cfgdb.get_table('VLAN_MEMBER')
@lukassup
lukassup / retropie-network-boot-pi4.md
Last active May 18, 2022 19:44
Network booting RetroPie on Raspberry Pi 4

Diskless RetroPie on Raspberry Pi 4

This should work fine when booting to in ARMv7 mode (32bit) - currently only version of RetroPie.

AArch64 mode (64bit) uses U-Boot and I couldn't set it up yet...

  1. Install Raspbian to an SD Card and boot your Raspberry Pi 4

TODO

@lukassup
lukassup / razer-pro-click-usb.txt
Created April 6, 2022 16:29
razer-pro-click-usb
% sudo lsusb -d 1532: -v
Bus 005 Device 004: ID 1532:0080 Razer USA, Ltd Razer Pro Click
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
@lukassup
lukassup / Pipfile
Created March 31, 2022 06:37
Postmaster exporter
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
google-api-python-client = "~=2.42.0"
prometheus-client = "~=0.13.1"
[dev-packages]
@lukassup
lukassup / synology-dsm7-fix.diff
Created January 28, 2022 18:38
Fix for Synology DSM v7 nginx config
diff --git a/usr/syno/share/nginx/DSM.mustache.orig b/usr/syno/share/nginx/DSM.mustache
index f4aa1cc..c648799 100644
--- a/usr/syno/share/nginx/DSM.mustache.orig
+++ b/usr/syno/share/nginx/DSM.mustache
@@ -1,9 +1,9 @@
{{#DSM}}
server {
- listen {{port}} default_server;
- listen [::]:{{port}} default_server;
+ listen {{port}};

Keybase proof

I hereby claim:

  • I am lukassup on github.
  • I am lsupienis (https://keybase.io/lsupienis) on keybase.
  • I have a public key whose fingerprint is C9EE 7912 DC7E 0128 06BB 7A12 C81D 3E06 2295 B7E1

To claim this, I am signing this object:

Open source game engine ports

  • SDLPoP: Prince of Persia (SDL port)
  • ecwolf: Wolfenstein3D, Spear of Destiny (SDL port)
  • GZDoom: idTech1 engine port. Doom I & II, Heretic, Hexen & more (Vulkan, OpenGL renderers)
  • Raze: Build engine port. Supports: Duke Nukem 3D, Redneck Rampage, Blood, Shadow Warrior (Vulkan, OpenGL renderers)
  • eduke32: Duke Nukem 3D source port
  • vkQuake: Quake I (Vulkan renderer)
  • vkQuake2: Quake II (Vulkan renderer)
  • ioQuake3: Quake III (SDL port)