λ dd if=<file> of=<device> bs=4M; sync
λ dd if=archlinux.iso of=/dev/sda1 bs=4M status=progress; sync
# /etc/ly/config.ini | |
# ------------------------------------------ | |
# The active animation | |
# none -> Nothing (default) | |
# doom -> PSX DOOM fire | |
# matrix -> CMatrix | |
animation = none | |
# Format string for clock in top right corner (see strftime specification). Example: %c |
# Create custom keymap for remapping Caps Lock to Control in TTY | |
sudo mkdir -p /usr/local/share/kbd/keymaps | |
echo -e "keymaps 0-127\nkeycode 58 = Control" | sudo tee /usr/local/share/kbd/keymaps/custom.map | |
# Set the keymap to load at boot | |
echo 'KEYMAP=/usr/local/share/kbd/keymaps/custom.map' | sudo tee -a /etc/vconsole.conf |
---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.
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
is:pr involves:yavorski
https://github.com/search?q=is%3Apr+involves%3Ayavorski
#!/usr/bin/env bash | |
# wayland | |
$ gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']" | |
# x11 | |
$ gsettings set org.gnome.mutter experimental-features "['x11-randr-fractional-scaling']" | |
# reset on both x11/wayland | |
$ gsettings reset org.gnome.mutter experimental-features |
# Add to -> Task Scheduler | |
# WSL 2 TPC NETWORK FORWARDING | |
# Introduction | |
# With the introduction of WSL 2 Beta, Microsoft has made changes to the system architecture. | |
# The changes include changing from the default bridged network adapter to a hyper-v virtual network adapter. | |
# The implementation was not completed during the launch of the beta program. This makes accessing of network resources under WSL 2 complex. | |
# The work around is to forward the TCP ports of WSL 2 services to the host OS. | |
# The virtual adapter on WSL 2 machine changes it's ip address during reboot which makes it tough to implement a run once solution. |
" WSL yank support | |
" ============================================================== | |
" change this path according to your mount point | |
let s:clip = '/mnt/c/Windows/System32/clip.exe' | |
if executable(s:clip) | |
augroup WSLYank | |
autocmd! | |
autocmd TextYankPost * if v:event.operator ==# 'y' | call system(s:clip, @0) | endif | |
augroup END | |
endif |