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/09/09 12:19] – [ripgrep] fdc9:281f:4d7:9ee9::1onny: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 "(?<=Version: )([0-9]|\.)*(?=\s|\$)" style.css grep -Po "(?<=Version: )([0-9]|\.)*(?=\s|\$)" style.css
-</code> 
- 
-==== fd ==== 
-search for all files with specific extension in directory / 
-<code bash> 
-fd --type f -e fm . / 
-</code> 
- 
-zip all files with specific file extension 
-<code bash> 
-fd -t f -e fm . / | zip source -@ 
-</code> 
- 
-file creation timespan 
-<code bash> 
-fd --type f -e pdf --change-newer-than "2020-09-09" --changed-before "2020-10-01" . 
-</code> 
- 
-execute command 
-<code bash> 
-fd --type f -e doc -e docx -e pdf -i gabriel -x cp --backup=t {} /tmp/gabriel/ 
-</code> 
- 
-find filenames unallowed characters 
-<code bash> 
-fd '[^A-Z a-züö@0-9._-]' remote/200_Archiv/CP_Dont_Touch 
 </code> </code>
  
Line 497: Line 471:
 git commit --amend git commit --amend
 git rebase --continue git rebase --continue
 +</code>
 +
 +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
 </code> </code>
  
Line 1151: Line 1131:
 nix-update stamp --version=branch=main nix-update stamp --version=branch=main
 nix-update --use-update-script python3Packages.django-filingcabinet nix-update --use-update-script python3Packages.django-filingcabinet
 +</code>
 +
 +run dynamically linked app
 +
 +<code bash>
 +NIXPKGS_ALLOW_UNFREE=1 nix run --impure nixpkgs#steam-run -- ./pdfcraft
 </code> </code>
 ==== configuration ==== ==== configuration ====
Line 2093: Line 2079:
 </code> </code>
  
-===== mariadb =====+===== mariadb (mysql) =====
  
 import dump import dump
 <code bash> <code bash>
-mariadb -u root nextcloud < mydump.sql+mycli -u root nextcloud < mydump.sql
 </code> </code>
  
Line 2111: Line 2097:
 </code> </code>
  
 +enable logging
 +
 +<code sql>
 +SET GLOBAL general_log = 0;
 +SET GLOBAL log_output = 'FILE';
 +SET GLOBAL general_log_file = '/var/lib/mysql/general.log';
 +SET GLOBAL general_log = 1;
 +</code>
 +<code bash>
 +ls -l /tmp/systemd-private-*-mysql.service-*/tmp/mariadb-general.log
 +</code>
 ===== postgresql ===== ===== postgresql =====
  
Line 2197: Line 2194:
 <code> <code>
 :bc :bc
 +</code>
 +
 +helix editor vertical split
 +
 +<code>
 +Ctrl-w v
 +</code>
 +
 +update or reload current buffer
 +<code>
 +:reload
 </code> </code>
 ===== traceroute ===== ===== traceroute =====
Line 2286: Line 2294:
   .github/pull_request_template.md flake.nix nextcloud-extras.nix psalm.xml   .github/pull_request_template.md flake.nix nextcloud-extras.nix psalm.xml
 reuse lint reuse lint
 +</code>
 +
 +===== kernel =====
 +
 +query config of current running kernel 
 +
 +<code bash>
 +zcat /proc/config.gz | rg CONFIG_RUST
 +</code>
 +
 +===== fd =====
 +
 +search for all files with specific extension in directory /
 +
 +<code bash>
 +fd --type f -e fm . /
 +</code>
 +
 +zip all files with specific file extension
 +
 +<code bash>
 +fd -t f -e fm . / | zip source -@
 +</code>
 +
 +file creation timespan
 +
 +<code bash>
 +fd --type f -e pdf --change-newer-than "2020-09-09" --changed-before "2020-10-01" .
 +</code>
 +
 +execute command
 +
 +<code bash>
 +fd --type f -e doc -e docx -e pdf -i gabriel -x cp --backup=t {} /tmp/gabriel/
 +</code>
 +
 +find filenames unallowed characters
 +
 +<code bash>
 +fd '[^A-Z a-züö@0-9._-]' remote/200_Archiv/CP_Dont_Touch
 +</code>
 +
 +remove empty dirs in dir "data"
 +
 +<code bash>
 +fd --type empty --type directory . /path/to/specific/dir -X rmdir
 </code> </code>
onny/notizen.1788956385.txt.gz · Last modified: by fdc9:281f:4d7:9ee9::1