Skip to content

Instantly share code, notes, and snippets.

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

Gábor Pichner 95gabor

👨‍💻
View GitHub Profile
@95gabor
95gabor / config.json
Last active March 28, 2025 14:03
sync terminus config
version: 7
profiles: []
groups: []
configSync:
parts: {}
hotkeys:
toggle-window:
- Ctrl-Space
copy-current-path: []
ctrl-c:
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
hyperline: {
plugins: ["ip", "memory", "battery", "cpu"],
},
// choose either `'stable'` for receiving highly polished,
@95gabor
95gabor / alpine.yaml
Last active March 7, 2025 07:53
Lima
# Usage:
# `limactl create --name=default ./alpine.yaml`
# `limactl start`
images:
- location: "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/cloud/nocloud_alpine-3.21.2-x86_64-uefi-cloudinit-r0.qcow2"
arch: "x86_64"
digest: "sha512:1aaf22b4a584e69e228e6aa38a295159c0143d9ccebe7ad4928e92b414714066af3bfe5f9e0ca4d4d64a70ca9fea09033af90258a6f2344130d70b660151127a"
- location: "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/cloud/nocloud_alpine-3.21.2-aarch64-uefi-cloudinit-r0.qcow2"
arch: "aarch64"
# Generated by Powerlevel10k configuration wizard on 2024-06-03 at 22:24 CEST.
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 4242.
# Wizard options: nerdfont-v3 + powerline, large icons, unicode, lean, 24h time, 1 line,
# compact, few icons, concise, transient_prompt, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with lean prompt style. Type `p10k configure` to generate
# your own config based on it.
#
# Tip: Looking for a nice color? Here's a one-liner to print colormap.
@95gabor
95gabor / init.vim
Created February 23, 2025 21:54
nvim
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree'
Plug 'projekt0n/github-nvim-theme'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'ryanoasis/vim-devicons'
Plug 'sheerun/vim-polyglot'
Plug 'pangloss/vim-javascript'
Plug 'ap/vim-css-color'
Plug 'itchyny/lightline.vim'
cat bitwarden_export.json | jq '.items
| map(.login)
| map(select(.password != null))
| group_by(.password)
| map({
password: .[0].password,
count: length,
uris: map(.uris | select(.) | .[].uri) | unique
})
| sort_by(.count)
@95gabor
95gabor / spilo.md
Last active January 30, 2025 16:47
postgres cluster, spilo, patronictl

PostgreSQL cluster commands

Spilo cluster commands

List cluster info

patronictl list
# 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
#