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/04/19 13:57] – [curlftpfs] fdc9:281f:4d7:9ee9::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 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 | unstage changes to a specific file of a specific commit | ||
| Line 1290: | Line 1319: | ||
| </ | </ | ||
| ==== packaging ==== | ==== packaging ==== | ||
| + | |||
| + | fetchpatch | ||
| + | |||
| + | < | ||
| + | patches = [ | ||
| + | (fetchpatch { | ||
| + | url = " | ||
| + | hash = " | ||
| + | name = " | ||
| + | }) | ||
| + | ]; | ||
| + | </ | ||
| + | |||
| + | ===== tools ===== | ||
| + | |||
| + | run / test update script | ||
| + | < | ||
| + | nix-shell maintainers/ | ||
| + | </ | ||
| + | |||
| + | ===== snippets ===== | ||
| fetchurl | fetchurl | ||
| Line 1609: | 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 1978: | Line 2046: | ||
| < | < | ||
| traceroute -T -p 25 mail.karlsruhe.de | 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.1776607048.txt.gz · Last modified: by fdc9:281f:4d7:9ee9::1
