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
onny:notizen [2024/02/21 09:38] – [cups] 127.0.0.1onny: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
 </code> </code>
-==== batch convert images ==== +
-<code bash> +
-for i in *.jpeg; convert -resize 30% $i (string replace jpeg jpg $i); end +
-</code>+
 ==== lossless mp3 merge ==== ==== lossless mp3 merge ====
 <code bash> <code bash>
Line 718: 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
-</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 748: Line 740:
 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 1264: Line 1250:
 <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>
  
onny/notizen.txt · Last modified: 2024/05/22 12:10 by 10.250.0.1