patronictl list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # Usage: sh -c "$(curl -fsSl https://gist.githubusercontent.com/95gabor/46d28becc44e2aa421f185069748a2b7/raw)" | |
| set -e | |
| microdnf -y update | |
| microdnf -y install \ | |
| vim \ | |
| util-linux-user \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 7 | |
| profiles: [] | |
| groups: [] | |
| configSync: | |
| parts: {} | |
| hotkeys: | |
| toggle-window: | |
| - Ctrl-Space | |
| copy-current-path: [] | |
| ctrl-c: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # top filter by package name | |
| top -c -p $(pgrep -d',' -f <package-name>) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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() |
NewerOlder