view · edit · sidebar · attach · print · history

2024

26.10.2024

  • nine kernel update
  • Do not forget
 grub-install --boot-directory=/boot/ --force /dev/vda

22.10.2024

  • delete overflowing mailbox
 mail -N
 d *
 quit

18.10.2024

  • Debian Wheezy upgrade
 760  sudo dpkg -i libfile-find-rule-perl_0.34-3_all.deb
 761  sudo apt install libtext-glob-perl
 762  wget https://snapshot.debian.org/archive/debian/20211025T025314Z/pool/main/libt/libtext-glob-perl/libtext-glob-perl_0.11-2_all.deb
 763  sudo dpkg -i libtext-glob-perl_0.11-2_all.deb
 764  sudo dpkg -i libfile-find-rule-perl_0.34-3_all.deb
 765  wget https://snapshot.debian.org/archive/debian/20211025T025314Z/pool/main/libn/libnumber-compare-perl/libnumber-compare-perl_0.03-2_all.deb
 766  sudo dpkg -i libnumber-compare-perl_0.03-2_all.deb
 767  sudo dpkg -i libfile-find-rule-perl_0.34-3_all.deb
 768  sudo apt install usrmerge_33_all.deb
 769  sudo dpkg -i usrmerge_33_all.deb
  • base-files has a dpkg dependency
 976  wget http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_1.19.8_amd64.deb
 977  sudo dpkg -i dpkg_1.19.8_amd64.deb
 978  sudo apt install libdpkg-perl
 979  apt policy libdpkg-perl
 980  wget http://ftp.de.debian.org/debian/pool/main/d/dpkg/dselect_1.22.11_amd64.deb
 981  wget http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_1.22.11_amd64.deb
 982  sudo dpkg -i dpkg_1.22.11_amd64.deb
 983  sudo dpkg -i libc6_2.38-1_amd64.deb
 984  sudo dpkg -i dpkg_1.22.11_amd64.deb
 985  sudo apt install libmd0
 986  wget http://ftp.de.debian.org/debian/pool/main/libm/libmd/libmd0_1.0.4-2_amd64.deb
 987  sudo dpkg -i libmd0_1.0.4-2_amd64.deb
 988  sudo dpkg -i dpkg_1.22.11_amd64.deb
 989  wget http://ftp.de.debian.org/debian/pool/main/t/tar/tar_1.35+dfsg-3_amd64.deb
 990  sudo dpkg -i tar_1.35+dfsg-3_amd64.deb
 991  sudo dpkg -i dpkg_1.22.11_amd64.deb
 992  sudo dpkg -i base-files_13.5_amd64.deb

14.10.2024

  • python-chardet problems
 https://www.cyberciti.biz/faq/the-repository-http-deb-debian-org-debian-buster-backports-release-no-longer-has-a-release-file/

2.10.2024

  • Upgrade Python
 python -m pip install --user --upgrade yt-dlp

30.9.2024

  • Check the Bots in the Apache2 Log
 cat other_vhosts_access.log.1 | awk -F\" '{print $6}' | sort | uniq -c | sort -nr | head -100

26.9.2024

  • Grep for faulty UTF-8 characters
 grep -rl --color='auto' -P '[^\x00-\x7F\xC2-\xF4][\x80-\xBF]*' .

17.9.2024

  • find and replace on a Mac
 find . -name '*.txt' -print0 | xargs -0 sed -i "" "s/form/forms/g"
 grep -ilr 'old-word' * | xargs -I@ sed -i '' 's/old-word/new-word/g' @

27.8.2024

  • config for i3
 /home/zeno/.config/i3
  • file contents
 bindsym $mod+Return exec xterm -fn 10x20
 bindsym $mod+i exec inkscape
 bindsym $mod+m exec firefox-bin
 bindsym $mod+o exec /home/zeno/libreoffice/opt/libreoffice24.8/program/oosplash

25.4.2024

  • show HW Model for Mac
 sysctl hw.model
 system_profiler SPHardwareDataType
 sw_vers

16.4.2024

  • pkg installer
 installer -pkg installer.pkg -target /Volumes

8.4.2024

  • USB sound issues
 pactl list short sinks 
 pactl set-default-sink
 pavucontrol

20.3.2024

  • Show last Windows Boot time
 (Get-WmiObject -Class Win32_OperatingSystem).LastBootUpTime

12.3.2024

  • Windows failed Login attempt
 Get-WinEvent -FilterHashTable @{LogName="Security"; ID=4625} | Select-Object TimeCreated, Message | Format-Table -Wrap
 Get-EventLog -LogName Security | Where-Object { $_.EventID -eq 4625 }

8.3.2024

  • Java Path
 PATH="/opt/jdk-14.0.2/bin:$PATH"

22.2.2024

  • List all Java certificates
 keytool -list -keystore "$JAVA_HOME/lib/security/cacerts"

8.2.2024

  • Block by User-Agent
 RewriteEngine On
 RewriteCond %{HTTP_USER_AGENT} (Bytespider|AhrefsBot) [NC]
 RewriteRule .* - [R=403,L]

7.2.2024

  • check access log for spiders
 awk -F\" '{print $6}' other_vhosts_access.log | sort | uniq -c | sort -fr

31.1.2024

  • Make vim paste in Windows
 :edit $MYVIMRC

Then, copy+paste the following into the file:

 source $VIMRUNTIME/mswin.vim

 behave mswin

24.1.2024

  • check Apache version on Debian
 apt policy apache2
  • Simulate Update
 apt install -s apache2

17.1.2024

  • recursively find jpg names
 # Set the folder path
 $folderPath = "C:\Users\zdava\Downloads\ul\ul\Convert"

 # Use Get-ChildItem to find all JPG files recursively
 $jpgFiles = Get-ChildItem -Path $folderPath -Recurse -Filter *.jpg

 # Output the list of JPG files
 foreach ($jpgFile in $jpgFiles) {
    Write-Output $jpgFile.FullName
 }

15.1.2024

  • delete all Mails for a User
 : > /var/mail/$USER

Verzeichnis nach Jahren

view · edit · sidebar · attach · print · history
Page last modified on October 26, 2024, at 06:44 AM