Site Tools


onny:notizen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
onny:notizen [2026/04/19 13:57] – [curlftpfs] fdc9:281f:4d7:9ee9::1onny:notizen [2026/05/27 07:55] (current) – [tools] 10.250.0.1
Line 166: Line 166:
 </file> </file>
 ===== networking ===== ===== networking =====
 +==== ip ====
 +
 +set new address
 +
 +<code bash>
 +ip addr flush dev enp7s0f4u2
 +ip addr add 10.42.0.2/24 dev enp7s0f4u2
 +ip link set enp7s0f4u2 up
 +</code>
 +
 +add route
 +
 +<code bash>
 +ip route add default via 10.42.0.1 dev usb0
 +</code>
 ==== nftables ==== ==== nftables ====
 +
 <code bash> <code bash>
 nft list ruleset nft list ruleset
Line 172: Line 188:
 nft -f ruleset.nft nft -f ruleset.nft
 </code> </code>
 +
 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:
 </code> </code>
 ==== git ==== ==== git ====
 +
 +git fetch remote branch of a pull request
 +<code>
 +git fetch upstream pull/518799/head:pr-518799
 +git checkout pr-518799
 +</code>
 +
 +git show, list only affected files
 +<code bash>
 +git show 45d2d903d507e8c8ce0c766243af103baa1bbe24 --name-only
 +</code>
  
 unstage changes to a specific file of a specific commit unstage changes to a specific file of a specific commit
Line 1290: Line 1319:
 </code> </code>
 ==== packaging ==== ==== packaging ====
 +
 +fetchpatch
 +
 +<code>
 +patches = [
 +  (fetchpatch {
 +    url = "https://salsa.debian.org/webkit-team/webkit/-/raw/debian/2.44.1-1/debian/patches/fix-ftbfs-riscv64.patch";
 +    hash = "sha256-MgaSpXq9l6KCLQdQyel6bQFHG53l3GY277WePpYXdjA=";
 +    name = "fix_ftbfs_riscv64.patch";
 +  })
 +];
 +</code>
 +
 +===== tools =====
 +
 +run / test update script
 +<code>
 +nix-shell maintainers/scripts/update.nix --argstr package openproject
 +</code>
 +
 +===== 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;
 +  })
 +];
 +</code>
 +
 +overlay examples
 +
 +<code>
 +nixpkgs.overlays = [
 +  (self: super: {
 +    python3 = super.python3.override {
 +      packageOverrides = python-final: python-prev: {
 +        mypy = python-prev.mypy.overridePythonAttrs (old: {
 +          nativeBuildInputs = (old.nativeBuildInputs or []) ++ [
 +            super.librt
 +          ];
 +        });
 +      };
 +    }; 
   })   })
 ]; ];
Line 1978: Line 2046:
 <code> <code>
 traceroute -T -p 25 mail.karlsruhe.de traceroute -T -p 25 mail.karlsruhe.de
 +</code>
 +
 +===== curl =====
 +
 +fetch headers
 +<code>
 +curl -sI https://project-insanity.org/
 +</code>
 +
 +===== ripgrep =====
 +
 +multiline regex whole file
 +<code>
 +rg -U --multiline-dotall 'bundlerEnv.*updateScript'
 +</code>
 +
 +search only in specific file extensions
 +<code>
 +rg -g "*.sh" -l "src.tag" pkgs/by-name/
 </code> </code>
onny/notizen.1776607048.txt.gz · Last modified: by fdc9:281f:4d7:9ee9::1