Skip to content

Instantly share code, notes, and snippets.

pipe buffering

command_a | dd obs=1m | dd obs=1m | command_b
command_a | mbuffer -s 128k -m 1G | command_b

chrome extension for enabling getEventListeners

after loading this extension, you have to click the extension icon to start injecting.

install g2p/blocks on rockylinux 9

sudo yum --enablerepo=crb install parted-devel
sudo yum install python3-devel augeas-libs
CFLAGS=-fcommon pip3 install -r requirements.txt

tmux copy paste

  • Ctrl+B [ to enter select mode
  • move cursor
  • Ctrl Space to start select
  • move cursor to set select area
  • Alt+W or Ctrl+W to copy area
  • Ctrl+B ] to paste

FYI

start vscode as admin

sudo PsExec.exe -nobanner -i -s -d 'C:\Program Files\Microsoft VS Code\code.exe'

tui for recursive cd with fzf

allow sshd on firewall windows

New-NetFirewallRule -DisplayName "OpenSSH SSH Server (custom)"  -Direction Inbound  -Program "C:\Windows\System32\OpenSSH\sshd.exe" -Action Allow -Profile Private,Public -Protocol TCP