view · edit · sidebar · attach · print · history

2024

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 14, 2024, at 06:26 PM