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
Last revisionBoth sides next revision
onny:notizen [2023/11/25 19:56] – [nixos] 127.0.0.1onny:notizen [2024/05/21 19:09] – [git] fdc9:281f:4d7:9ee9::1
Line 1: Line 1:
- 
 ===== bash ===== ===== bash =====
  
Line 621: Line 620:
 git remote set-url origin gitlab@http-new.pi:onny/web-wikidict.git git remote set-url origin gitlab@http-new.pi:onny/web-wikidict.git
 </code> </code>
-tagging +
-<code bash> +
-git tag -a v0.1 -m 'whackspace wordpress theme init' +
-</code>+
 merge commits from a remote repository merge commits from a remote repository
 +
 <code bash> <code bash>
 git fetch https://github.com/rfc2822/davdroid.git master git fetch https://github.com/rfc2822/davdroid.git master
Line 720: Line 717:
 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
-</code> 
-change message of last git commit 
-<code bash> 
-git commit --amend 
 </code> </code>
 force push, remove latest commit of remote repository (origin) force push, remove latest commit of remote repository (origin)
Line 750: Line 743:
 git commit --all --amend --no-edit git commit --all --amend --no-edit
 git rebase --continue git rebase --continue
-</code> 
- 
-add co-author / co-authors to commit 
-<code bash> 
-git commit --amend 
-# Add line: Co-authored-by: name <name@example.com> 
 </code> </code>
 ===== yum ===== ===== yum =====
Line 837: Line 824:
 </code> </code>
   * check spamminess of email server: https://www.mail-tester.com/   * check spamminess of email server: https://www.mail-tester.com/
-  * manual imap login +
-openssl imaps login +
-<code> +
-openssl s_client -connect mail.sexypump.de:993 -crlf +
-A login cypherpunk cypherpunk +
-</code> +
-get quota +
-<code> +
-a GETQUOTAROOT INBOX +
-</code> +
-get msg count of folder +
-<code> +
-a LIST INBOX * +
-* LIST (\HasChildren) "." INBOX +
-* LIST (\HasNoChildren \UnMarked) "." "INBOX.Deleted Messages" +
-* LIST (\HasNoChildren \UnMarked) "." "INBOX.Sent Messages" +
-* LIST (\HasNoChildren \UnMarked \Trash) "." INBOX.Trash +
-* LIST (\HasNoChildren \UnMarked \Sent) "." INBOX.Sent +
-* LIST (\HasNoChildren \UnMarked) "." INBOX.Notes +
-* LIST (\HasNoChildren \UnMarked \Junk) "." INBOX.Junk +
-* LIST (\HasNoChildren \UnMarked \Drafts) "." INBOX.Drafts +
-* LIST (\HasNoChildren \UnMarked) "." INBOX.AntiSpam +
-a OK List completed (0.001 + 0.000 secs). +
-a SELECT INBOX +
-</code>+
 send smtp mail send smtp mail
 <code> <code>
Line 1249: Line 1212:
  
 <code> <code>
-let  +nixpkgs.config.packageOverrides = pkgs: rec { 
- +  unstable = import unstableTarball { }; 
-  # FIXME +  opensnitch = unstable.opensnitch; 
-  unstableTarball = +};
-    fetchTarball +
-      https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz; +
- +
-in +
-+
- +
-  disabledModules = [ +
-    "programs/firejail.nix" +
-    "services/web-apps/nextcloud.nix" +
-  ]; +
- +
-  imports = [ +
-    "${fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"}/nixos/modules/services/security/opensnitch.nix" +
-    /home/onny/projects/nixpkgs2/nixos/modules/services/networking/create_ap.nix +
-  ]; +
-  nixpkgs.config.packageOverrides = pkgs: rec { +
-    unstable = import unstableTarball { }; +
-    opensnitch = unstable.opensnitch; +
-  }+
-  #services.opensnitch.enable = true;+
 </code> </code>
  
Line 1304: Line 1247:
     '';     '';
   });   });
-</code> 
- 
-use local src / source 
- 
-<code> 
-  src = /home/onny/projects/linux-wifi-hotspot; 
-  unpackPhase = ''cp -r --no-preserve=mode $src/* .''; 
 </code> </code>
  
Line 1317: Line 1253:
 <code bash> <code bash>
 nix-shell -p 'python3.withPackages (p: [p.pygobject3])' -p libnotify -p gobjectIntrospection nix-shell -p 'python3.withPackages (p: [p.pygobject3])' -p libnotify -p gobjectIntrospection
-</code> 
- 
-package overlay and override attributes 
- 
-<code> 
-  nixpkgs.overlays = [ 
-    (self: super: { 
-      foo2zjs = (import (builtins.fetchTarball { 
-        url = 
-          "https://github.com/onny/nixpkgs/archive/foo2zjs.tar.gz"; 
-        sha256 = "0dsix1vp4canialzj4rp51i35lhdk28yndnnj62i0brzlng7jdrk"; 
-      }) {} ).foo2zjs; 
-      wordpress = super.wordpress.overrideAttrs (oldAttrs: rec { 
-        # Remove default plugins and themes 
-        installPhase = oldAttrs.installPhase + '' 
-          rm -r $out/share/wordpress/wp-content/plugins/* 
-          rm -r $out/share/wordpress/wp-content/themes/* 
-        ''; 
-      }); 
-      foo2zjs = super.foo2zjs.overrideAttrs (oldAttrs: rec { 
-        src = builtins.fetchurl { 
-          url = "https://github.com/onny/nixpkgs/archive/foo2zjs-colorfix.tar.gz"; 
-          sha256 = "0xksz2p2l0jx083hlbrh295ncb2lgsp9b8nwdig3lyinl5x"; 
-        }; 
-        patches = (oldAttrs.patches or []) ++ [ 
-          (pkgs.fetchpatch { 
-            url = "https://raw.githubusercontent.com/onny/nixpkgs/12b6026fb0a4119e40a095aae224eaaf27098c10/pkgs/misc/drivers/foo2zjs/dell1250c-a4fix.patch"; 
-            sha256 = "0lvbryw6ymh0ahwkhqsgmjimg5saa8b1xnxmyyjxrbi3l3a6flll"; 
-          }) 
-        ]; 
-      }); 
-    }) 
-  ]; 
 </code> </code>
  
Line 1406: Line 1309:
     };     };
   };   };
-</code> 
- 
-nix repl 
- 
-<code bash> 
-nix repl '<nixpkgs>' 
-# wordpressPackages.plugins.gutenberg.meta.license 
 </code> </code>
 ==== packaging ==== ==== packaging ====
Line 1707: Line 1603:
       --add-flags "-jar $out/lib/briar-desktop.jar"       --add-flags "-jar $out/lib/briar-desktop.jar"
   '';   '';
-</code> 
-==== tests ==== 
- 
-run tests interactively 
- 
-<code bash> 
-nix build -L -f . nixosTests.invoiceplane.driverInteractive 
-./result/bin/nixos-test-driver 
-> startAll 
-> testScript 
-> $machine->succeed("touch /tmp/foo") 
-> print($machine->succeed("pwd")) # Show stdout of command 
 </code> </code>
  
Line 2012: Line 1896:
 </code> </code>
  
-===== cups ===== 
- 
-list printers 
-<code> 
-$ 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 
-</code> 
- 
-print file 
-<code> 
-lp -d Dell_1250c_USB -o fit-to-page -o media=A4 scared_cat.png 
-</code> 
- 
-list jobs 
-<code> 
-$ lpstat 
-Dell_1250c_USB-2        root            340992   Tue 28 Dec 2021 09:57:08 AM UTC 
-</code> 
- 
-cancel job 
-<code> 
-cancel 1 
-</code> 
  
 ===== qemu ===== ===== qemu =====
onny/notizen.txt · Last modified: 2024/05/22 12:10 by 10.250.0.1