# ~/.gitconfig
[merge]
tool = diffview
[mergetool]
prompt = false
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/env python3 | |
| # ---------------------------------------------------------------------------- | |
| # WAYBAR CPU MODULE | |
| # ---------------------------------------------------------------------------- | |
| # CPU monitoring script for waybar. | |
| # Features: | |
| # - Per-core usage visualization (Die layout) | |
| # - Power usage (RAPL) | |
| # - Temperature monitoring | |
| # - Top processes consuming CPU |
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/env python3 | |
| # ---------------------------------------------------------------------------- | |
| # WAYBAR MEMORY MODULE | |
| # ---------------------------------------------------------------------------- | |
| # A dynamic memory monitor for Waybar. | |
| # Features: | |
| # - Real-time RAM usage with color-coded states | |
| # - Tooltip with detailed breakdown (Used, Cached, Buffers) | |
| # - Auto-detects memory modules via dmidecode (requires sudo permissions) | |
| # - Temperature monitoring (requires lm_sensors) |
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/env python3 | |
| # ---------------------------------------------------------------------------- | |
| # WAYBAR GPU MODULE | |
| # ---------------------------------------------------------------------------- | |
| # Visualizes GPU stats including VRAM layout and Die temperature. | |
| # Designed for Nvidia GPUs (uses nvidia-smi). | |
| # ---------------------------------------------------------------------------- | |
| import json | |
| import subprocess |
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/env python3 | |
| # ---------------------------------------------------------------------------- | |
| # WAYBAR STORAGE MODULE | |
| # ---------------------------------------------------------------------------- | |
| # Auto-detects mounted physical drives and displays usage in a sleek dashboard. | |
| # Features: | |
| # - Dynamic drive detection (ignores snaps, loops, etc.) | |
| # - Real-time I/O speeds (Read/Write) | |
| # - Drive temperature monitoring (requires lm_sensors/smartctl) | |
| # - Health status via smartctl (requires sudo) |
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
| ---Utility for keymap creation. | |
| ---@param lhs string | |
| ---@param rhs string|function | |
| ---@param opts string|table | |
| ---@param mode? string|string[] | |
| local function keymap(lhs, rhs, opts, mode) | |
| opts = type(opts) == 'string' and { desc = opts } | |
| or vim.tbl_extend('error', opts --[[@as table]], { buffer = bufnr }) | |
| mode = mode or 'n' | |
| vim.keymap.set(mode, lhs, rhs, opts) |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
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
| start() | |
| async function start () { | |
| const promises = [ | |
| new Promise((resolve, reject) => setTimeout(reject, 1000)), | |
| Promise.reject(), | |
| Promise.reject() | |
| ] | |
| for (const a of promises) { |
NewerOlder