This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
onny:notizen [2023/09/17 14:33] – [curl] 10.250.0.1 | onny:notizen [2024/02/21 09:38] – [cups] 127.0.0.1 | ||
---|---|---|---|
Line 621: | Line 621: | ||
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 837: | Line 835: | ||
</ | </ | ||
* 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 1223: | ||
< | < | ||
- | 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 1304: | Line 1258: | ||
''; | ''; | ||
}); | }); | ||
- | </ | ||
- | |||
- | use local src / source | ||
- | |||
- | < | ||
- | src = / | ||
- | unpackPhase = '' | ||
</ | </ | ||
Line 1349: | Line 1296: | ||
}); | }); | ||
}) | }) | ||
- | ]; | ||
- | </ | ||
- | |||
- | fetchpatch | ||
- | |||
- | < | ||
- | patches = [ | ||
- | # Support HBPL1 printers https:// | ||
- | ./ | ||
- | |||
- | # Fix " | ||
- | # https:// | ||
- | (fetchpatch { | ||
- | url = " | ||
- | sha256 = " | ||
- | stripLen = 1; | ||
- | name = " | ||
- | }) | ||
- | |||
]; | ]; | ||
</ | </ | ||
Line 1425: | Line 1353: | ||
}; | }; | ||
}; | }; | ||
- | </ | ||
- | |||
- | nix repl | ||
- | |||
- | <code bash> | ||
- | nix repl '< | ||
- | # wordpressPackages.plugins.gutenberg.meta.license | ||
</ | </ | ||
==== packaging ==== | ==== packaging ==== | ||
Line 1726: | Line 1647: | ||
--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 1793: | Line 1702: | ||
<code bash> | <code bash> | ||
fatlabel /dev/sdb1 " | fatlabel /dev/sdb1 " | ||
- | </ | ||
- | |||
- | grow ext4 partition live | ||
- | <code bash> | ||
- | $ growpart /dev/sda 2 | ||
- | $ resize2fs /dev/sda2 | ||
</ | </ | ||
Line 1887: | Line 1790: | ||
</ | </ | ||
- | ===== avahi ===== | + | |
- | discover local services | + | |
- | <code bash> | + | |
- | avahi-browse --all --ignore-local --resolve --terminate | + | |
- | </ | + | |
===== curlftpfs ===== | ===== curlftpfs ===== | ||
<code bash> | <code bash> | ||
Line 2041: | Line 1940: | ||
</ | </ | ||
- | ===== 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 ===== |