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/09/01 22:26] – [act] 10.250.0.1 | onny:notizen [2026/10/13 11:49] (current) – [nixos] 2001:7c0:200:300:b:5000:0:2ff | ||
|---|---|---|---|
| Line 93: | Line 93: | ||
| <code bash> | <code bash> | ||
| grep -Po " | grep -Po " | ||
| - | </ | ||
| - | |||
| - | ==== fd ==== | ||
| - | search for all files with specific extension in directory / | ||
| - | <code bash> | ||
| - | fd --type f -e fm . / | ||
| - | </ | ||
| - | |||
| - | zip all files with specific file extension | ||
| - | <code bash> | ||
| - | fd -t f -e fm . / | zip source -@ | ||
| - | </ | ||
| - | |||
| - | file creation timespan | ||
| - | <code bash> | ||
| - | fd --type f -e pdf --change-newer-than " | ||
| - | </ | ||
| - | |||
| - | execute command | ||
| - | <code bash> | ||
| - | fd --type f -e doc -e docx -e pdf -i gabriel -x cp --backup=t {} / | ||
| - | </ | ||
| - | |||
| - | find filenames unallowed characters | ||
| - | <code bash> | ||
| - | fd '[^A-Z a-züö@0-9._-]' | ||
| </ | </ | ||
| Line 497: | Line 471: | ||
| git commit --amend | git commit --amend | ||
| git rebase --continue | git rebase --continue | ||
| + | </ | ||
| + | |||
| + | git rebase --onto, change base of current branch to one commit before 2c1231... but keep every commits after 52d639995... | ||
| + | |||
| + | <code bash> | ||
| + | git rebase --onto 2c1231d61dad184b6ebcff43bb5487a2cdfcc760~1 52d639995ffe58e3dc9de3c9d4193c2188133793 | ||
| </ | </ | ||
| Line 893: | Line 873: | ||
| start_all() | start_all() | ||
| </ | </ | ||
| + | |||
| + | get attributes of test | ||
| + | |||
| + | <code bash> | ||
| + | nix eval .# | ||
| + | [" | ||
| + | nix build -L .# | ||
| + | </ | ||
| + | |||
| ===== nixos ===== | ===== nixos ===== | ||
| Line 1143: | Line 1132: | ||
| nix-update --use-update-script python3Packages.django-filingcabinet | nix-update --use-update-script python3Packages.django-filingcabinet | ||
| </ | </ | ||
| - | ==== packaging | + | |
| + | run dynamically linked app | ||
| + | |||
| + | <code bash> | ||
| + | NIXPKGS_ALLOW_UNFREE=1 nix run --impure nixpkgs# | ||
| + | </ | ||
| + | ==== configuration ==== | ||
| + | |||
| + | prepend list to existing default configuration of option | ||
| + | |||
| + | <code nix> | ||
| + | enabledPreviewProviders = lib.mkOptionDefault ( | ||
| + | lib.mkBefore [ | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | ); | ||
| + | </ | ||
| + | |||
| + | ==== packaging ==== | ||
| template | template | ||
| Line 2071: | Line 2079: | ||
| </ | </ | ||
| - | ===== mariadb ===== | + | ===== mariadb |
| import dump | import dump | ||
| <code bash> | <code bash> | ||
| - | mariadb | + | mycli -u root nextcloud < mydump.sql |
| </ | </ | ||
| Line 2089: | Line 2097: | ||
| </ | </ | ||
| + | enable logging | ||
| + | |||
| + | <code sql> | ||
| + | SET GLOBAL general_log = 0; | ||
| + | SET GLOBAL log_output = ' | ||
| + | SET GLOBAL general_log_file = '/ | ||
| + | SET GLOBAL general_log = 1; | ||
| + | </ | ||
| + | <code bash> | ||
| + | ls -l / | ||
| + | </ | ||
| ===== postgresql ===== | ===== postgresql ===== | ||
| Line 2175: | Line 2194: | ||
| < | < | ||
| :bc | :bc | ||
| + | </ | ||
| + | |||
| + | helix editor vertical split | ||
| + | |||
| + | < | ||
| + | Ctrl-w v | ||
| + | </ | ||
| + | |||
| + | update or reload current buffer | ||
| + | < | ||
| + | :reload | ||
| </ | </ | ||
| ===== traceroute ===== | ===== traceroute ===== | ||
| Line 2193: | Line 2223: | ||
| multiline regex whole file | multiline regex whole file | ||
| + | |||
| < | < | ||
| rg -U --multiline-dotall ' | rg -U --multiline-dotall ' | ||
| + | </ | ||
| + | |||
| + | with proximity, only 1-2 lines in between | ||
| + | |||
| + | <code bash> | ||
| + | rg -U --multiline-dotall " | ||
| </ | </ | ||
| search only in specific file extensions | search only in specific file extensions | ||
| + | |||
| < | < | ||
| rg -g " | rg -g " | ||
| Line 2216: | Line 2254: | ||
| </ | </ | ||
| - | ===== compuser | + | ===== composer |
| upgrade to new major version | upgrade to new major version | ||
| Line 2223: | Line 2261: | ||
| composer outdated | composer outdated | ||
| composer require --dev psalm/ | composer require --dev psalm/ | ||
| + | </ | ||
| + | |||
| + | ===== namei ===== | ||
| + | |||
| + | list permissions, | ||
| + | |||
| + | <code bash> | ||
| + | [picloud@picloudrv: | ||
| + | f: / | ||
| + | drwxr-xr-x root | ||
| + | drwxr-xr-x root | ||
| + | drwxrwxr-t root | ||
| + | dr-xr-xr-x root | ||
| + | lrwxrwxrwx root | ||
| + | drwxr-xr-x root | ||
| + | drwxr-xr-x root | ||
| + | drwxr-xr-x root | ||
| + | drwxr-xr-x root | ||
| + | drwxr-x--- invoiceplane caddy invoice.project-insanity.org | ||
| + | drwxr-x--- invoiceplane caddy uploads | ||
| + | drwxr-x--- invoiceplane caddy temp | ||
| + | Rechnung_129.xml - No such file or directory | ||
| + | </ | ||
| + | |||
| + | ===== reuse ===== | ||
| + | |||
| + | general usage | ||
| + | |||
| + | <code bash> | ||
| + | reuse download MIT | ||
| + | reuse annotate --copyright "Jonas Heinrich < | ||
| + | .github/ | ||
| + | reuse lint | ||
| + | </ | ||
| + | |||
| + | ===== kernel ===== | ||
| + | |||
| + | query config of current running kernel | ||
| + | |||
| + | <code bash> | ||
| + | zcat / | ||
| + | </ | ||
| + | |||
| + | ===== fd ===== | ||
| + | |||
| + | search for all files with specific extension in directory / | ||
| + | |||
| + | <code bash> | ||
| + | fd --type f -e fm . / | ||
| + | </ | ||
| + | |||
| + | zip all files with specific file extension | ||
| + | |||
| + | <code bash> | ||
| + | fd -t f -e fm . / | zip source -@ | ||
| + | </ | ||
| + | |||
| + | file creation timespan | ||
| + | |||
| + | <code bash> | ||
| + | fd --type f -e pdf --change-newer-than " | ||
| + | </ | ||
| + | |||
| + | execute command | ||
| + | |||
| + | <code bash> | ||
| + | fd --type f -e doc -e docx -e pdf -i gabriel -x cp --backup=t {} / | ||
| + | </ | ||
| + | |||
| + | find filenames unallowed characters | ||
| + | |||
| + | <code bash> | ||
| + | fd '[^A-Z a-züö@0-9._-]' | ||
| + | </ | ||
| + | |||
| + | remove empty dirs in dir " | ||
| + | |||
| + | <code bash> | ||
| + | fd --type empty --type directory . / | ||
| </ | </ | ||
onny/notizen.1788301610.txt.gz · Last modified: by 10.250.0.1
