view · edit · sidebar · attach · print · history

<< | Home | 2022 >>

2023

12.11.2023

  • with
 Grep -Ff 

the lager file has to come first it seems

25.8.2023

  • In case Windows Update KB5029351 fails
 https://answers.microsoft.com/en-us/windows/forum/all/kb5029351-update-fail-0x800f0991/2c76d622-3a1b-420e-8215-8dda65209fa8

3.7.2023

  • ImageMagick
 https://legacy.imagemagick.org/Usage/text/
 convert -background green -font arial -fill white -size 450 pango:"Text Text Text" image.png
 convert -background green -font arial -pointsize 24 -fill white -size 450 pango:"Text, Text, Text" Bindung.png

2.6.2023

  • See if wlmscpfs is running
 tasklist.exe | findstr wlmscpfs

20.5.2023

  • Check port 104 on windows
 netstat -ano | findstr :104
  • Show all running tasks on Windows
 tasklist
  • Show all open ports of a PID on Windows
 netstat -ano | findstr <PID>

19.5.2023

  • Show mapped windows drives
 Get-WmiObject -Class Win32_MappedLogicalDisk | Select-Object DeviceID, ProviderName
 Get-PSDrive | Where-Object { $_.DisplayRoot -ne $null } | Select-Object Name, Root
 Get-PSDrive -PSProvider 'FileSystem'

10.5.2023

  • dcmodify
 dcmodify -i "0008,0060=ECG" test.dcm 
 dcmodify -i "0032,1060=holter" test.dcm 

15.4.2023

  • CHMED16A
 base64 -di rezept2 | gzip -d
 Attach:eMediplan_CHMED16A_V2.0.pdf
 https://github.com/certifaction/hinsign-cli

4.4.2023

  • bcftools
 https://samtools.github.io/bcftools/howtos/install.html

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

<< | Home | 2022 >>

view · edit · sidebar · attach · print · history
Page last modified on January 08, 2024, at 09:10 AM