Skip to content

Instantly share code, notes, and snippets.

View 95gabor's full-sized avatar
👨‍💻

Gábor 95gabor

👨‍💻
View GitHub Profile
# top filter by package name
top -c -p $(pgrep -d',' -f <package-name>)
@95gabor
95gabor / upstream.lua
Last active December 1, 2023 13:31
prometheus-node-exporter-lua-wan
#!/usr/bin/lua
# /usr/lib/lua/prometheus-collectors/upstream.lua
local ubus = require "ubus"
local function scrape()
local metric_wan_interface = metric("wan_interface_uptime", "gauge", "WAN interface uptime")
local u = ubus.connect()
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#
# https://bit.ly/3vDTtiz
ssh_authorized_keys:
- github:95gabor
k3os:
k3s_args:
- server
- "--disable traefik"