Skip to content

Instantly share code, notes, and snippets.

View susliko's full-sized avatar
🕊️

Vasil Markoukin susliko

🕊️
View GitHub Profile
@kremovtort
kremovtort / telescope_window_picker.md
Last active January 24, 2025 02:12
Window picker for telescope.nvim

Install plugin: https://github.com/s1n7ax/nvim-window-picker

Create command:

vim.api.nvim_create_user_command("Pick", function (e)
  local success, picked = pcall(function ()
    return require('window-picker').pick_window({
      autoselect_one = true,
      include_current_win = true,
 current_win_hl_color = '#89b4fa',
@CIAvash
CIAvash / switch_sink.sh
Created June 11, 2021 12:17
Select/Switch Pulse/Pipewire audio sink/device/node with `rofi` and `pactl`
#!/usr/bin/env bash
all_sinks=$(pactl list short sinks | cut -f 2)
default_sink=$(pactl info | grep 'Default Sink' | cut -d : -f 2)
active_sink=$(echo "$all_sinks" | grep -n $default_sink | cut -d : -f 1)
selected_sink=$(echo "$all_sinks" | rofi -dmenu -i -a $(($active_sink - 1)) -p 'Select a device: ')
@kesyog
kesyog / i3 multiple monitors.md
Last active May 4, 2025 06:43
Configuring multiple displays with i3

Configuring multiple displays with i3

Motivation

I've run into a few common issues running i3 on a laptop with external monitors.

  • When running i3, external monitors aren't always detected properly.
  • When running multiple displays with different resolutions, text scaling is inconsistent.
  • I'd like to be able to automatically change configurations if I unplug my external monitor(s), plug in a projector, etc.
@bgauduch
bgauduch / multiple-repository-and-identities-git-configuration.md
Last active May 2, 2025 13:16
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:

Thread Pools

Thread pools on the JVM should usually be divided into the following three categories:

  1. CPU-bound
  2. Blocking IO
  3. Non-blocking IO polling

Each of these categories has a different optimal configuration and usage pattern.