view · edit · sidebar · attach · print · history

2023

24.3.2023

  • Force change password
 echo "root:passwd1234" | chpasswd

23.3.2023

  • dcmj2pnm
 dcmj2pnm --write-jpeg 1.dcm ./output --all-frames

22.3.2023

  • Open Oracle Firewall
 firewall-cmd --zone=public --permanent --add-port=80/tcp
 firewall-cmd --reload

20.3.2023

  • Oracle Linux Upgrade
 update-crypto-policies --set LEGACY
 https://dev.to/armiedema/opening-up-port-80-and-443-for-oracle-cloud-servers-j35

17.3.2023

  • Set Windows Powershell
 New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
 New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\WINDOWS\System32\bash.exe" -PropertyType String -Force

12.3.2023

  • Proxychains with Tor
 https://gist.github.com/carlware/f02e14232177c18f33b5743bde916d8a

6.2.2023

  • Mutool, find position of every letter in PDF, export as XML
 mutool draw -F stext -o out.xml input.pdf

4.2.2023

  • Norm the linebreaks
 :%norm! gww

3.2.2023

  • Remove background noise
 ffmpeg -i in.mp3 -af "afftdn=nr=10:nf=-30:tn=1" out.mp3

26.1.2023

  • Grep in Apache Log file
 grep -ri generative . | awk '{print $1,$2,$3,":",$NF}'

12.1.2023

  • Nokogiri
 Nokogiri 1.14.0 is out with YJIT support.

10.1.2023

  • bisecting the Linux Kernel
 https://bugzilla.kernel.org/show_bug.cgi?id=216859

9.1.2023

  • Flatpak Gnucash Update
 sudo flatpak update

5.1.2023

  • ssh 1:9.1p1-2 throws this error after upgrade
 error: sys_get_rdomain: cannot determine VRF for fd=4 : Protocol not available
  • check all ssh output with
 ssh -vvv zdavatz@domain.ch
  • nine Rescue mount
 mount /dev/vda2 /mnt
 for name in proc sys dev ; do mount --bind /$name /mnt/$name; done
 mount --bind /etc/resolv.conf /mnt/etc/resolv.conf
 chroot /mnt/ /bin/bash
  • show which kernel was last booted
 find /boot/vmli*
 stat -c %x /boot/vmlinuz-6.0.0-6-amd64
  • show all packages via devscripts
 rmadison openssh-server
  • Check network interface name
 ls /sys/class/net
 sudo lshw -C network | grep 'logical name'
  • Network settings for Debian
 cat /etc/network/interfaces

4.1.2023

  • Install Ruby 3.2.0 without Rdoc
 CONFIGURE_OPTS="--disable-install-rdoc" rbenv install 3.2.0
  • Check for Ruby YJIT support
 $ ruby --jit -v -e itself 
 ruby 3.2.0dev (2022-06-26T06:36:14Z master c2e37c8ff7) +MJIT [x86_64-linux]

 $ ruby --yjit -e0   
 ruby: warning: Ruby was built without YJIT support

3.1.2023

  • Grep or non UTF-8 characters:
 grep -P "[\x80-\xFF]" file
 grep -axv '.*' file.txt

2.1.2023

Verzeichnis nach Jahren

view · edit · sidebar · attach · print · history
Page last modified on March 24, 2023, at 10:21 AM