Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
development:linux:misc_commands [2020/05/29 11:52]
kalenpw
development:linux:misc_commands [2023/04/12 19:58] (current)
kalenpw
Line 9: Line 9:
 # mac # mac
 find . -type f -name "*.txt" -print0 | xargs -0 sed -i "" -E 's!<color (#([[:digit:]]|[A-Fa-f])+)>(.*)</color>!<font inherit/inherit;;\1;;inherit>\3</font>!g' find . -type f -name "*.txt" -print0 | xargs -0 sed -i "" -E 's!<color (#([[:digit:]]|[A-Fa-f])+)>(.*)</color>!<font inherit/inherit;;\1;;inherit>\3</font>!g'
- 
 # linux # linux
 find . -type f -name "*.txt" -print0 | xargs -0 sed -i -E 's!<color (#([[:digit:]]|[A-Fa-f])+)>(.*)</color>!<font inherit/inherit;;\1;;inherit>\3</font>!g' find . -type f -name "*.txt" -print0 | xargs -0 sed -i -E 's!<color (#([[:digit:]]|[A-Fa-f])+)>(.*)</color>!<font inherit/inherit;;\1;;inherit>\3</font>!g'
Line 34: Line 33:
 synclient PalmDetect=1 synclient PalmDetect=1
  
-</code>+# replace text in filename with other text 
 +for i in *.png; do mv "$i" "`echo $i | sed 's/to replace/new text/'`"; done
  
 +# see what goes into your boottime
 +systemd-analyze critical-chain
 +
 +# if you can't format a drive and partition table was messed up
 +sudo dd if=/dev/zero of=/dev/sdX bs=2048 count=32
 +
 +# Symlink so you can put .desktop files in ~/Applications
 +ln -s $HOME/Applications $HOME/.local/share/applications
 +
 +# Reset sound drivers Fedora
 +systemctl --user restart pipewire pipewire-pulse wireplumber
 +# Reset sound drivers Mac
 +sudo pkill coreaudiod
 +
 +</code>
 +----