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/01 17:28] – [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 837: | Line 821: | ||
</ | </ | ||
* check spamminess of email server: https:// | * check spamminess of email server: https:// | ||
- | * manual imap login | + | |
- | openssl imaps login | + | |
- | < | + | |
- | openssl s_client -connect mail.sexypump.de: | + | |
- | A login cypherpunk cypherpunk | + | |
- | </ | + | |
- | get quota | + | |
- | < | + | |
- | a GETQUOTAROOT INBOX | + | |
- | </ | + | |
- | get msg count of folder | + | |
- | < | + | |
- | a LIST INBOX * | + | |
- | * LIST (\HasChildren) " | + | |
- | * LIST (\HasNoChildren \UnMarked) " | + | |
- | * LIST (\HasNoChildren \UnMarked) " | + | |
- | * LIST (\HasNoChildren \UnMarked \Trash) " | + | |
- | * LIST (\HasNoChildren \UnMarked \Sent) " | + | |
- | * LIST (\HasNoChildren \UnMarked) " | + | |
- | * LIST (\HasNoChildren \UnMarked \Junk) " | + | |
- | * LIST (\HasNoChildren \UnMarked \Drafts) " | + | |
- | * LIST (\HasNoChildren \UnMarked) " | + | |
- | a OK List completed (0.001 + 0.000 secs). | + | |
- | a SELECT INBOX | + | |
- | </ | + | |
send smtp mail | send smtp mail | ||
< | < | ||
Line 1249: | Line 1209: | ||
< | < | ||
- | let | + | nixpkgs.config.packageOverrides = pkgs: rec { |
- | + | unstable = import unstableTarball { }; | |
- | # FIXME | + | opensnitch = unstable.opensnitch; |
- | unstableTarball = | + | }; |
- | fetchTarball | + | |
- | https:// | + | |
- | + | ||
- | in | + | |
- | { | + | |
- | + | ||
- | disabledModules = [ | + | |
- | " | + | |
- | " | + | |
- | ]; | + | |
- | + | ||
- | imports = [ | + | |
- | " | + | |
- | / | + | |
- | ]; | + | |
- | | + | |
- | unstable = import unstableTarball { }; | + | |
- | opensnitch = unstable.opensnitch; | + | |
- | }; | + | |
- | # | + | |
</ | </ | ||
Line 1310: | 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 1399: | Line 1306: | ||
}; | }; | ||
}; | }; | ||
- | </ | ||
- | |||
- | nix repl | ||
- | |||
- | <code bash> | ||
- | nix repl '< | ||
- | # wordpressPackages.plugins.gutenberg.meta.license | ||
</ | </ | ||
==== packaging ==== | ==== packaging ==== | ||
Line 1700: | Line 1600: | ||
--add-flags "-jar $out/ | --add-flags "-jar $out/ | ||
''; | ''; | ||
- | </ | ||
- | ==== tests ==== | ||
- | |||
- | run tests interactively | ||
- | |||
- | <code bash> | ||
- | nix build -L -f . nixosTests.invoiceplane.driverInteractive | ||
- | ./ | ||
- | > startAll | ||
- | > testScript | ||
- | > $machine-> | ||
- | > print($machine-> | ||
</ | </ | ||
Line 2005: | 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.1701451703.txt.gz · Last modified: 2023/12/01 17:28 by 127.0.0.1