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/03/27 09:39] – [nixos] fdc9:281f:4d7:9ee9::1onny:notizen [2026/04/14 08:59] (current) – [postmarketOS] fdc9:281f:4d7:9ee9::1
Line 291: Line 291:
 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 -crf 30 -strict experimental av1_test.mp4+ffmpeg -i input.mov -c:v libsvtav1 -crf 30 -preset 6 -svtav1-params tune=0 -c:a libopus -b:a 128k output.webm
 </code> </code>
 Burn subtitles, fast video conversion Burn subtitles, fast video conversion
Line 617: Line 617:
 </code> </code>
 ==== git ==== ==== git ====
 +
 +unstage changes to a specific file of a specific commit
 +<code bash>
 +git rebase -i 19d0900f23e0b29fc2706dbbf8a806cea7c3e0f2^
 +git restore --staged --source=HEAD^ -- pkgs/by-name/op/openproject/package.nix
 +git restore -- pkgs/by-name/op/openproject/package.nix
 +git commit --amend
 +git rebase --continue
 +</code>
 +
 +merge changes into last commit
 +<code bash>
 +git commit -a --amend --no-edit
 +</code>
 +
 show remote origin show remote origin
 <code bash> <code bash>
 git remote show origin git remote show origin
 </code> </code>
 +
 change remote origin change remote origin
 <code bash> <code bash>
Line 981: Line 997:
 </code> </code>
 ===== systemd ===== ===== systemd =====
 +
 +systemctl show unit environment
 +<code>
 +systemctl show rsshub --property=Environment
 +</code>
 +
 service hardening service hardening
 <code> <code>
Line 1562: Line 1584:
 </code> </code>
  
-===== modules =====+==== system config ==== 
 + 
 +use module and package from remote repo 
 + 
 +<code> 
 +
 +  inputs = { 
 +    nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; 
 +    invoiceplane-unstable.url = "nixpkgs/master"; 
 +  }; 
 +}; 
 +</code> 
 + 
 +<code> 
 +disabledModules = [ 
 +  "services/web-apps/invoiceplane.nix" 
 +]; 
 +imports = [ 
 +  "${inputs.invoiceplane-unstable}/nixos/modules/services/web-apps/invoiceplane.nix" 
 +]; 
 + 
 +nixpkgs.overlays 
 +  (self: super: { 
 +    invoiceplane = inputs.invoiceplane-unstable.legacyPackages.x86_64-linux.invoiceplane; 
 +    plausible = inputs.plausible-riscv.legacyPackages.x86_64-linux.pkgsCross.riscv64.plausible; 
 +  }) 
 +]; 
 +</code> 
 +==== modules ====
  
 converting cfg.settings to strings only for systemd environment variables etc converting cfg.settings to strings only for systemd environment variables etc
Line 1580: Line 1630:
 local file path as flake input local file path as flake input
 <code> <code>
-inputs.verwaltungstracker.url = "path:/home/onny/projects/verwaltungstracker";+inputs.verwaltungstracker.url = "git+file:///home/onny/projects/verwaltungstracker";
 </code> </code>
  
Line 1737: Line 1787:
  
 ===== postmarketOS ===== ===== postmarketOS =====
 +
 +update checksum
 +<code bash>
 +pmbootstrap checksum device-samsung-dream
 +</code>
  
 general chroot management general chroot management
onny/notizen.1774604395.txt.gz · Last modified: by fdc9:281f:4d7:9ee9::1