onny:notizen
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
onny:notizen [2023/12/27 12:41] – [nixos] 127.0.0.1 | onny:notizen [2024/05/22 12:10] (current) – [batch convert images] 10.250.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
===== bash ===== | ===== bash ===== | ||
Line 298: | Line 297: | ||
ffmpeg -i Kawamata\ -\ La\ passage\ des\ chaises.mkv -vf subtitles=Kawamata\ -\ La\ passage\ des\ chaises.mkv -acodec copy -preset:v ultrafast Kawamata\ -\ La\ passage\ des\ chaises.mp4 | ffmpeg -i Kawamata\ -\ La\ passage\ des\ chaises.mkv -vf subtitles=Kawamata\ -\ La\ passage\ des\ chaises.mkv -acodec copy -preset:v ultrafast Kawamata\ -\ La\ passage\ des\ chaises.mp4 | ||
</ | </ | ||
- | ==== batch convert images ==== | + | |
- | <code bash> | + | |
- | for i in *.jpeg; convert -resize 30% $i (string replace jpeg jpg $i); end | + | |
- | </ | + | |
==== lossless mp3 merge ==== | ==== lossless mp3 merge ==== | ||
<code bash> | <code bash> | ||
Line 621: | Line 617: | ||
git remote set-url origin gitlab@http-new.pi: | git remote set-url origin gitlab@http-new.pi: | ||
</ | </ | ||
- | tagging | + | |
- | <code bash> | + | |
- | git tag -a v0.1 -m ' | + | |
- | </ | + | |
merge commits from a remote repository | merge commits from a remote repository | ||
+ | |||
<code bash> | <code bash> | ||
git fetch https:// | git fetch https:// | ||
Line 720: | Line 714: | ||
git commit --allow-empty -m 'run tests again' | git commit --allow-empty -m 'run tests again' | ||
git push --set-upstream USERNAME mynewbranch | git push --set-upstream USERNAME mynewbranch | ||
- | </ | ||
- | change message of last git commit | ||
- | <code bash> | ||
- | git commit --amend | ||
</ | </ | ||
force push, remove latest commit of remote repository (origin) | force push, remove latest commit of remote repository (origin) | ||
Line 750: | Line 740: | ||
git commit --all --amend --no-edit | git commit --all --amend --no-edit | ||
git rebase --continue | git rebase --continue | ||
- | </ | ||
- | |||
- | add co-author / co-authors to commit | ||
- | <code bash> | ||
- | git commit --amend | ||
- | # Add line: Co-authored-by: | ||
</ | </ | ||
===== yum ===== | ===== yum ===== | ||
Line 1266: | Line 1250: | ||
<code bash> | <code bash> | ||
nix-shell -p ' | nix-shell -p ' | ||
- | </ | ||
- | |||
- | package overlay and override attributes | ||
- | |||
- | < | ||
- | nixpkgs.overlays = [ | ||
- | (self: super: { | ||
- | foo2zjs = (import (builtins.fetchTarball { | ||
- | url = | ||
- | " | ||
- | sha256 = " | ||
- | }) {} ).foo2zjs; | ||
- | wordpress = super.wordpress.overrideAttrs (oldAttrs: rec { | ||
- | # Remove default plugins and themes | ||
- | installPhase = oldAttrs.installPhase + '' | ||
- | rm -r $out/ | ||
- | rm -r $out/ | ||
- | ''; | ||
- | }); | ||
- | foo2zjs = super.foo2zjs.overrideAttrs (oldAttrs: rec { | ||
- | src = builtins.fetchurl { | ||
- | url = " | ||
- | sha256 = " | ||
- | }; | ||
- | patches = (oldAttrs.patches or []) ++ [ | ||
- | (pkgs.fetchpatch { | ||
- | url = " | ||
- | sha256 = " | ||
- | }) | ||
- | ]; | ||
- | }); | ||
- | }) | ||
- | ]; | ||
</ | </ | ||
Line 1355: | Line 1306: | ||
}; | }; | ||
}; | }; | ||
- | </ | ||
- | |||
- | nix repl | ||
- | |||
- | <code bash> | ||
- | nix repl '< | ||
- | # wordpressPackages.plugins.gutenberg.meta.license | ||
</ | </ | ||
==== packaging ==== | ==== packaging ==== | ||
Line 1949: | Line 1893: | ||
</ | </ | ||
- | ===== cups ===== | ||
- | |||
- | list printers | ||
- | < | ||
- | $ lpstat -p -d | ||
- | printer Dell_1250c is idle. enabled since Tue 28 Dec 2021 09:44:59 AM UTC | ||
- | printer Dell_1250c_USB is idle. enabled since Tue 28 Dec 2021 09:44:59 AM UTC | ||
- | </ | ||
- | |||
- | print file | ||
- | < | ||
- | lp -d Dell_1250c_USB -o fit-to-page -o media=A4 scared_cat.png | ||
- | </ | ||
- | |||
- | list jobs | ||
- | < | ||
- | $ lpstat | ||
- | Dell_1250c_USB-2 | ||
- | </ | ||
- | |||
- | cancel job | ||
- | < | ||
- | cancel 1 | ||
- | </ | ||
===== qemu ===== | ===== qemu ===== |
onny/notizen.1703680914.txt.gz · Last modified: 2023/12/27 12:41 by 127.0.0.1