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/26 16:15] – [pnpm] fdc9:281f:4d7:9ee9::1 | onny: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 | + | ffmpeg -i input.mov -c:v libsvtav1 |
| </ | </ | ||
| Burn subtitles, fast video conversion | Burn subtitles, fast video conversion | ||
| Line 617: | Line 617: | ||
| </ | </ | ||
| ==== git ==== | ==== git ==== | ||
| + | |||
| + | 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 981: | Line 997: | ||
| </ | </ | ||
| ===== systemd ===== | ===== systemd ===== | ||
| + | |||
| + | systemctl show unit environment | ||
| + | < | ||
| + | systemctl show rsshub --property=Environment | ||
| + | </ | ||
| + | |||
| service hardening | service hardening | ||
| < | < | ||
| Line 1020: | Line 1042: | ||
| < | < | ||
| sudo nixos-rebuild switch --flake '/ | sudo nixos-rebuild switch --flake '/ | ||
| - | sudo nixos-rebuild boot --flake '/ | ||
| - | </ | ||
| - | |||
| - | update channel, rebuild and switch | ||
| - | |||
| - | <code bash> | ||
| - | nixos-rebuild switch --upgrade | ||
| </ | </ | ||
| Line 1033: | Line 1048: | ||
| <code bash> | <code bash> | ||
| nix search gedit | nix search gedit | ||
| - | </ | ||
| - | |||
| - | nixos testing environement | ||
| - | |||
| - | <code bash> | ||
| - | nix-shell -p toilet | ||
| - | </ | ||
| - | |||
| - | install unstable package | ||
| - | |||
| - | <code bash> | ||
| - | nix-channel --add https:// | ||
| - | nix-channel --update unstable | ||
| - | nix-env -iA unstable.pdfarranger | ||
| </ | </ | ||
| Line 1083: | Line 1084: | ||
| ]; | ]; | ||
| </ | </ | ||
| + | |||
| garbade collector | garbade collector | ||
| <code bash> | <code bash> | ||
| nix-collect-garbage -d | nix-collect-garbage -d | ||
| </ | </ | ||
| + | |||
| list package files | list package files | ||
| <code bash> | <code bash> | ||
| find $(nix eval -f / | find $(nix eval -f / | ||
| </ | </ | ||
| + | |||
| install package | install package | ||
| <code bash> | <code bash> | ||
| nix-env -i icecat | nix-env -i icecat | ||
| </ | </ | ||
| + | |||
| remove package | remove package | ||
| <code bash> | <code bash> | ||
| Line 1124: | Line 1129: | ||
| source venv/ | source venv/ | ||
| pip install -r requirements.txt | pip install -r requirements.txt | ||
| - | </ | ||
| - | |||
| - | local repository (nixpkgs clone) as systemwide channel | ||
| - | |||
| - | <code bash> | ||
| - | $ nix-build nixos/ | ||
| - | ... | ||
| - | / | ||
| - | $ sudo nix-channel --remove nixos | ||
| - | $ sudo nix-channel --add file:/// | ||
| - | $ sudo nix-channel --update | ||
| </ | </ | ||
| Line 1169: | Line 1163: | ||
| curl -sL https:// | curl -sL https:// | ||
| | head -n 1 | grep -o -E -e " | | head -n 1 | grep -o -E -e " | ||
| - | </ | ||
| - | allow unfree package installation nix-env | ||
| - | <code bash> | ||
| - | env NIXPKGS_ALLOW_UNFREE=1 nix-env -f / | ||
| </ | </ | ||
| Line 1220: | Line 1210: | ||
| < | < | ||
| command-not-found telnet | command-not-found telnet | ||
| - | </ | ||
| - | |||
| - | use module from unstable | ||
| - | |||
| - | < | ||
| - | nixpkgs.config.packageOverrides = pkgs: rec { | ||
| - | unstable = import unstableTarball { }; | ||
| - | opensnitch = unstable.opensnitch; | ||
| - | }; | ||
| - | </ | ||
| - | |||
| - | overlay: use / overwrite package from custom remote or local repo / fork: | ||
| - | |||
| - | < | ||
| - | nixpkgs.overlays = [ | ||
| - | (self: super: { | ||
| - | foo2zjs = (import (builtins.fetchTarball { | ||
| - | url = | ||
| - | " | ||
| - | sha256 = " | ||
| - | }) { config = { allowUnfree = true; }; }).foo2zjs; | ||
| - | linux-wifi-hotspot = (import / | ||
| - | }) | ||
| - | ]; | ||
| </ | </ | ||
| Line 1618: | Line 1584: | ||
| </ | </ | ||
| - | ===== modules ===== | + | ==== system config |
| + | |||
| + | use module and package from remote repo | ||
| + | |||
| + | < | ||
| + | { | ||
| + | inputs = { | ||
| + | nixpkgs.url = " | ||
| + | invoiceplane-unstable.url = " | ||
| + | }; | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | disabledModules = [ | ||
| + | " | ||
| + | ]; | ||
| + | imports = [ | ||
| + | " | ||
| + | ]; | ||
| + | |||
| + | nixpkgs.overlays | ||
| + | (self: super: { | ||
| + | invoiceplane = inputs.invoiceplane-unstable.legacyPackages.x86_64-linux.invoiceplane; | ||
| + | plausible = inputs.plausible-riscv.legacyPackages.x86_64-linux.pkgsCross.riscv64.plausible; | ||
| + | }) | ||
| + | ]; | ||
| + | </ | ||
| + | ==== modules | ||
| converting cfg.settings to strings only for systemd environment variables etc | converting cfg.settings to strings only for systemd environment variables etc | ||
| Line 1636: | Line 1630: | ||
| local file path as flake input | local file path as flake input | ||
| < | < | ||
| - | inputs.verwaltungstracker.url = "path:/ | + | inputs.verwaltungstracker.url = "git+file:/// |
| </ | </ | ||
| Line 1793: | Line 1787: | ||
| ===== postmarketOS ===== | ===== postmarketOS ===== | ||
| + | |||
| + | update checksum | ||
| + | <code bash> | ||
| + | pmbootstrap checksum device-samsung-dream | ||
| + | </ | ||
| general chroot management | general chroot management | ||
onny/notizen.1774541721.txt.gz · Last modified: by fdc9:281f:4d7:9ee9::1
