Github cli on debian

wget -O- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ && sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] \ https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ && sudo apt update \ && sudo apt install gh -y Adjusted to use wget NOT curl. REF: https://github.com/cli/cli/blob/trunk/docs/install_linux.md

Hidpi Gnome

Run as root cat <<EOF> /etc/dconf/profile/user user-db:user system-db:local EOF mkdir -p /etc/dconf/db/local.d/ cat <<EOF> /etc/dconf/db/local.d/00-hidpi [org/gnome/mutter] experimental-features=['scale-monitor-framebuffer'] EOF mkdir -p /etc/dconf/db/locks cat <<EOF> /etc/dconf/db/locks/hidpi /org/gnome/mutter/experimental-features EOF dconf update && reboot Source: https://wiki.archlinux.org/title/HiDPI#GNOME

nodejs

Update npm npm i -g npm@latest Update npm to latest version Must have modules npm-check Checks for outdated packages either in package.json or global. More modules here… Windows quirks Permisson error npm config set prefix %APPDATA%\npm npm config set cache %LOCALAPPDATA%\npm-cache This will set the PREFIX value to C:\Users\<username>\AppData\Roaming\npm and cache value to C:\Users\<username>\AppData\Local\npm-cache Alternatively you can edit the config file manually: npm config edit

PAN cli

Restart firewall: request restart system List all networks with IP: show routing interface List all connected devices: All interfaces: show arp all Only on interface/subinterface: show arp ethernet1/2.24 Restart service debug software restart process process_name Append core yes to dump data. User ID List all known groups, and filter on name: show user group list show user group list | match string Copy cn=something group to list members: show user group name "cn=something" you just copied. ...

Python 101

Create virtual python3 environment python3 -m venv .venv --upgrade-deps source .venv/bin/activate pip install package Instead of sourcing, you can use bin path ./venv/bin/pip3 install --upgrade PACKAGE or set the venv bin folder before existing path PATH=./venv/bin:$PATH Interactive python python -i .py file List outdated packages pip list --outdated Links The Python Package Index (PyPI)

RPI 101

Boot from USB vcgencmd otp_dump | grep 17 17:3020000a - USB BOOT 17:1020000a - NO USB BOOT Add to /boot/config.txt [all] program_usb_boot_mode=1