2023
24.3.2023
echo "root:passwd1234" | chpasswd
23.3.2023
dcmj2pnm --write-jpeg 1.dcm ./output --all-frames
22.3.2023
firewall-cmd --zone=public --permanent --add-port=80/tcp
firewall-cmd --reload
20.3.2023
update-crypto-policies --set LEGACY
https://dev.to/armiedema/opening-up-port-80-and-443-for-oracle-cloud-servers-j35
17.3.2023
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
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! gww
3.2.2023
ffmpeg -i in.mp3 -af "afftdn=nr=10:nf=-30:tn=1" out.mp3
26.1.2023
grep -ri generative . | awk '{print $1,$2,$3,":",$NF}'
12.1.2023
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
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
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