Skip to content

Instantly share code, notes, and snippets.

#Requires AutoHotkey v2.0
; Send <Alt+F13> with <Alt+Escape> - Windows 11
; Allows to use <Alt+Escape> mapping in Neovim on Windows 11
!Esc::
{
static skip := false
if skip
@yavorski
yavorski / no-wi-fi-fix.md
Last active February 14, 2025 20:08
no wi-fi fix

no wi-fi

  • Qualcomm Inc QCNFA765
  • Kernel driver in use: ath11k_pci

fix

iwctl device list
iwctl station wlan0 scan
@yavorski
yavorski / neovim-as-merge-tool.md
Created January 23, 2025 18:15 — forked from Pagliacii/neovim-as-merge-tool.md
Using Neovim as a merge tool

git

Using diffview.nvim

# ~/.gitconfig
[merge]
  tool = diffview
[mergetool]
  prompt = false
@yavorski
yavorski / PKGBUILD
Created November 27, 2024 18:43
npm nodejs fake/dummy package for arch linux
# Maintainer: Your Name <>
# Contributor: Arch Linux User <>
pkgname=nodejs-npm-fake
pkgver=1.0.0
pkgrel=1
pkgdesc="A dummy package for Node.js and npm (fake version)"
arch=('any')
url="https://nodejs.org/"
license=('MIT')
@yavorski
yavorski / arch-linux-full-disk-encryption.md
Created November 23, 2024 12:46
Arch Linux Full Disk Encryption

Arch Linux

SSH Remote Installation


Enable ssh service from the live iso installation media

passwd
@yavorski
yavorski / arch-pacman-mirrorlist.md
Created November 23, 2024 11:50
Auto update arch linux pacman mirrors list

Auto update mirror list

pacman -S reflector
pacman -S pacman-contrib

Edit the reflector configuration file at /etc/xdg/reflector/reflector.conf

@yavorski
yavorski / thinkpad.md
Created November 15, 2024 18:29
Thinkpad-T480

ThinkPad T480 Linux

Make bootable usb with dd

λ dd if=<file> of=<device> bs=4M; sync
λ dd if=archlinux.iso of=/dev/sda1 bs=4M status=progress; sync

Update uefi-bios

@yavorski
yavorski / builtin-compl.lua
Created June 4, 2024 06:55 — forked from MariaSolOs/builtin-compl.lua
Built-in completion + snippet Neovim setup
---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)
@yavorski
yavorski / rust-command-line-utilities.markdown
Created May 23, 2024 11:15 — forked from sts10/rust-command-line-utilities.markdown
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

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.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool