Site Tools


Hotfix release available: 2026-07-14b "Mort". upgrade now! [57.2] (what's this?)
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/08/05 14:48] – [helix] 10.250.0.1onny:notizen [2026/08/31 15:04] (current) – [date] fdc9:281f:4d7:9ee9::1
Line 141: Line 141:
 <code> <code>
 fd . | xargs -I {} rm "{}" fd . | xargs -I {} rm "{}"
 +</code>
 +===== date =====
 +
 +convert date to unix timestamp
 +
 +<code bash>
 +date -d "1990-01-01" +%s
 +</code>
 +
 +convert unix timestamp to datetime
 +
 +<code bash>
 +date -d @1254330900 '+%Y-%m-%d %H:%M:%S'
 </code> </code>
 ===== rsync ===== ===== rsync =====
Line 578: Line 591:
 git rebase upstream/master git rebase upstream/master
 </code> </code>
 +
 squash commits squash commits
 +
 <code bash> <code bash>
 git rebase -i upstream/master git rebase -i upstream/master
 # < choose squash for all of your commits, except the first one > # < choose squash for all of your commits, except the first one >
 # < Edit the commit message to make sense, and describe all your changes > # < Edit the commit message to make sense, and describe all your changes >
-git push origin omgpull -f +# or
-</code> +
-alternatively +
-<code bash>+
 git rebase -i HEAD~3 git rebase -i HEAD~3
-</code> +# or (replace main with origin branch) 
-alternatively +git rebase -i $(git merge-base HEAD main) 
-<code bash>+# or
 git merge --squash apple-a9 git merge --squash apple-a9
 </code> </code>
 +
 rerun tests with empty commit rerun tests with empty commit
 <code bash> <code bash>
Line 658: Line 671:
 nmap -p 80 192.168.188.0/24 -n --open --script /usr/share/nmap/scripts/http-title.nse nmap -p 80 192.168.188.0/24 -n --open --script /usr/share/nmap/scripts/http-title.nse
 </code> </code>
-===== debian ===== +
-which package provides file XY +
-<code bash> +
-apt-file update +
-apt-file search netstat +
-</code> +
-extract deb package +
-<code bash> +
-ar x *.deb +
-</code>+
 ===== Makefile ===== ===== Makefile =====
 define variables with preset which can be overwritten define variables with preset which can be overwritten
Line 728: Line 732:
 DONE DONE
 </code> </code>
-===== Android ===== +
-installed apps +
-<code> +
-antennapod davx5 dbnavigator fdroid fennec icsx5 jellyfin keepassdx libreoffice vlc nextcloud quicklyric radiodroid signal soundhound spotify tasks documentviewer fdroid-privilegedextension +
-</code> +
-configurations +
-  * antennpod subscriptions +
-  * fdroid pi repo +
-  * davx calendar & contacts +
-  * jellyfin config +
-  * nextcloud config +
-  * signal backup +
-  * radiodroid station list +
-  * spotify config +
-flash recovery +
-<code bash> +
-heimdall flash --RECOVERY twrp-3.2.1-1-serranoltexx.img +
-</code> +
-anbox +
-<code bash> +
-pacman -S anbox-git anbox-image anbox-modules-dkms-git +
-modprobe binder_linux ashmem_linux +
-systemctl restart anbox-container-manager +
-systemctl --user restart anbox-session-manager +
-anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity +
-wget "https://f-droid.org/FDroid.apk" +
-adb install FDroid.apk +
-</code>+
 ====== davdroid ====== ====== davdroid ======
 <code> <code>
Line 894: Line 871:
 # Takes away the ability to create or manage any kind of namespace # Takes away the ability to create or manage any kind of namespace
 RestrictNamespaces=true RestrictNamespaces=true
 +</code>
 +===== nix =====
 +
 +nix repl usage
 +
 +<code bash>
 +nix repl --expr 'let eval = import <nixpkgs/nixos/lib/eval-config.nix> { system = "x86_64-linux"; modules = []; }; in eval'
 +:p options.services.nextcloud.settings
 +</code>
 +
 +<code>
 +nix repl nixpkgs
 +> legacyPackages.x86_64-linux.hello
 +</code>
 +
 +run tests interactive
 +
 +<code bash>
 +nix build -L .#nixosTests.quake3.driverInteractive
 +./result/bin/nixos-test-driver
 +start_all()
 </code> </code>
 ===== nixos ===== ===== nixos =====
Line 1053: Line 1051:
  
 <code bash> <code bash>
-git clone https://github.com/NixOS/nixpkgs.git 
-cd nixpkgs 
 nixpkgs-review pr 98044 nixpkgs-review pr 98044
 +nixpkgs-review wip --build-args="-j3"
 </code> </code>
  
Line 1085: Line 1082:
     '';     '';
   });   });
 +</code>
 +
 +override only source hash
 +
 +<code>
 +django-oauth-toolkit = super.django-oauth-toolkit.overrideAttrs (old: {
 +  version = "3.3.0";
 +
 +  src = old.src.override {
 +    hash = "sha256-eRQzAFUvSgoDiP7LW/+hMrNxHuXVxY+wc/E3VU/zeXo=";
 +  };
 +});
 </code> </code>
  
Line 1132: Line 1141:
 nix-update gelly nix-update gelly
 nix-update stamp --version=branch=main nix-update stamp --version=branch=main
 +nix-update --use-update-script python3Packages.django-filingcabinet
 </code> </code>
 ==== packaging package ==== ==== packaging package ====
Line 1231: Line 1241:
 </code> </code>
  
 +===== python =====
 +
 +python relax dependency
 +
 +<code>
 +pythonRelaxDeps = [ "pydantic" ];
 +</code>
 ==== packaging module ==== ==== packaging module ====
  
Line 1984: Line 2001:
 md5sum -t recovery.tar >> recovery.tar md5sum -t recovery.tar >> recovery.tar
 mv recovery.tar recovery.tar.md5 mv recovery.tar recovery.tar.md5
 +</code>
 +
 +apk list installed files
 +
 +<code>
 +apk info -L calls-systemd
 </code> </code>
 ===== parted ===== ===== parted =====
Line 2146: Line 2169:
 <code> <code>
 % %
 +</code>
 +
 +buffer close
 +
 +<code>
 +:bc
 </code> </code>
 ===== traceroute ===== ===== traceroute =====
onny/notizen.1785941338.txt.gz · Last modified: by 10.250.0.1