onny:notizen
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| onny:notizen [2026/03/31 09:28] – [system config] 10.250.0.1 | onny:notizen [2026/05/27 07:55] (current) – [tools] 10.250.0.1 | ||
|---|---|---|---|
| Line 166: | Line 166: | ||
| </ | </ | ||
| ===== networking ===== | ===== networking ===== | ||
| + | ==== ip ==== | ||
| + | |||
| + | set new address | ||
| + | |||
| + | <code bash> | ||
| + | ip addr flush dev enp7s0f4u2 | ||
| + | ip addr add 10.42.0.2/ | ||
| + | ip link set enp7s0f4u2 up | ||
| + | </ | ||
| + | |||
| + | add route | ||
| + | |||
| + | <code bash> | ||
| + | ip route add default via 10.42.0.1 dev usb0 | ||
| + | </ | ||
| ==== nftables ==== | ==== nftables ==== | ||
| + | |||
| <code bash> | <code bash> | ||
| nft list ruleset | nft list ruleset | ||
| Line 172: | Line 188: | ||
| nft -f ruleset.nft | nft -f ruleset.nft | ||
| </ | </ | ||
| + | |||
| display handles, insert rule at position | display handles, insert rule at position | ||
| + | |||
| <code bash> | <code bash> | ||
| nft -a list ruleset | nft -a list ruleset | ||
| Line 291: | Line 309: | ||
| Constant quality AV1. The CRF value can be from 0–63. Lower values mean better quality. | Constant quality AV1. The CRF value can be from 0–63. Lower values mean better quality. | ||
| <code bash> | <code bash> | ||
| - | ffmpeg -i input.mp4 -c:v libaom-av1 | + | ffmpeg -i input.mov -c:v libsvtav1 |
| </ | </ | ||
| Burn subtitles, fast video conversion | Burn subtitles, fast video conversion | ||
| Line 617: | Line 635: | ||
| </ | </ | ||
| ==== git ==== | ==== git ==== | ||
| + | |||
| + | git fetch remote branch of a pull request | ||
| + | < | ||
| + | git fetch upstream pull/ | ||
| + | git checkout pr-518799 | ||
| + | </ | ||
| + | |||
| + | git show, list only affected files | ||
| + | <code bash> | ||
| + | git show 45d2d903d507e8c8ce0c766243af103baa1bbe24 --name-only | ||
| + | </ | ||
| + | |||
| + | unstage changes to a specific file of a specific commit | ||
| + | <code bash> | ||
| + | git rebase -i 19d0900f23e0b29fc2706dbbf8a806cea7c3e0f2^ | ||
| + | git restore --staged --source=HEAD^ -- pkgs/ | ||
| + | git restore -- pkgs/ | ||
| + | git commit --amend | ||
| + | git rebase --continue | ||
| + | </ | ||
| + | |||
| + | merge changes into last commit | ||
| + | <code bash> | ||
| + | git commit -a --amend --no-edit | ||
| + | </ | ||
| + | |||
| show remote origin | show remote origin | ||
| <code bash> | <code bash> | ||
| git remote show origin | git remote show origin | ||
| </ | </ | ||
| + | |||
| change remote origin | change remote origin | ||
| <code bash> | <code bash> | ||
| Line 1274: | Line 1319: | ||
| </ | </ | ||
| ==== packaging ==== | ==== packaging ==== | ||
| + | |||
| + | fetchpatch | ||
| + | |||
| + | < | ||
| + | patches = [ | ||
| + | (fetchpatch { | ||
| + | url = " | ||
| + | hash = " | ||
| + | name = " | ||
| + | }) | ||
| + | ]; | ||
| + | </ | ||
| + | |||
| + | ===== tools ===== | ||
| + | |||
| + | run / test update script | ||
| + | < | ||
| + | nix-shell maintainers/ | ||
| + | </ | ||
| + | |||
| + | ===== snippets ===== | ||
| fetchurl | fetchurl | ||
| Line 1593: | Line 1659: | ||
| invoiceplane = inputs.invoiceplane-unstable.legacyPackages.x86_64-linux.invoiceplane; | invoiceplane = inputs.invoiceplane-unstable.legacyPackages.x86_64-linux.invoiceplane; | ||
| plausible = inputs.plausible-riscv.legacyPackages.x86_64-linux.pkgsCross.riscv64.plausible; | plausible = inputs.plausible-riscv.legacyPackages.x86_64-linux.pkgsCross.riscv64.plausible; | ||
| + | }) | ||
| + | ]; | ||
| + | </ | ||
| + | |||
| + | overlay examples | ||
| + | |||
| + | < | ||
| + | nixpkgs.overlays = [ | ||
| + | (self: super: { | ||
| + | python3 = super.python3.override { | ||
| + | packageOverrides = python-final: | ||
| + | mypy = python-prev.mypy.overridePythonAttrs (old: { | ||
| + | nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ | ||
| + | super.librt | ||
| + | ]; | ||
| + | }); | ||
| + | }; | ||
| + | }; | ||
| }) | }) | ||
| ]; | ]; | ||
| Line 1614: | Line 1698: | ||
| local file path as flake input | local file path as flake input | ||
| < | < | ||
| - | inputs.verwaltungstracker.url = "path:/ | + | inputs.verwaltungstracker.url = "git+file:/// |
| </ | </ | ||
| Line 1733: | Line 1817: | ||
| - | ===== curlftpfs ===== | ||
| - | <code bash> | ||
| - | curlftpfs ftp.example.com /mnt/ftp/ -o user=username: | ||
| - | </ | ||
| ===== pnpm ===== | ===== pnpm ===== | ||
| Line 1771: | Line 1851: | ||
| ===== postmarketOS ===== | ===== postmarketOS ===== | ||
| + | |||
| + | update checksum | ||
| + | <code bash> | ||
| + | pmbootstrap checksum device-samsung-dream | ||
| + | </ | ||
| general chroot management | general chroot management | ||
| Line 1948: | Line 2033: | ||
| </ | </ | ||
| + | ===== helix ===== | ||
| + | multi-cursor selection mode | ||
| + | < | ||
| + | Normal mode -> V (visual mode) -> Shift+C (multiple times) -> i (insert mode) -> Enter something | ||
| + | ESC -> , | ||
| + | </ | ||
| + | |||
| + | ===== traceroute ===== | ||
| + | |||
| + | traceroute TCP packages specific port | ||
| + | < | ||
| + | traceroute -T -p 25 mail.karlsruhe.de | ||
| + | </ | ||
| + | |||
| + | ===== curl ===== | ||
| + | |||
| + | fetch headers | ||
| + | < | ||
| + | curl -sI https:// | ||
| + | </ | ||
| + | |||
| + | ===== ripgrep ===== | ||
| + | |||
| + | multiline regex whole file | ||
| + | < | ||
| + | rg -U --multiline-dotall ' | ||
| + | </ | ||
| + | |||
| + | search only in specific file extensions | ||
| + | < | ||
| + | rg -g " | ||
| + | </ | ||
onny/notizen.1774949286.txt.gz · Last modified: by 10.250.0.1
