PostgreSQL
coub
express.js
freeware
git
jquery
laravel
links
linux
macos
mysql
node.js
php
powershell
python
ubuntu
vim
virtualbox
анекдот
блог
игры
интересно
стихи
цитаты
Get laptop model or motherboard model
February 13, 2026
Just like that
sudo dmidecode -s system-product-name
Single mode saves you
February 13, 2026
Sometimes bad things happen. Crooked arms, crooked updates etc. This feature saves me many times.
Choose recovery in your GRUB menu, then press "e" to edit boot options, then find the line that starts with "linux" word, it usually has words like "splash" and "quiet", then add to the end of this line word "single".
Example:
And finally press F10 or Ctrl+x to boot with your changed options.
This allows you to boot in single-user mode as root.
Choose recovery in your GRUB menu, then press "e" to edit boot options, then find the line that starts with "linux" word, it usually has words like "splash" and "quiet", then add to the end of this line word "single".
Example:
linux /boot/vmlinuz-6.12 root=UUID=249a1099-3034-4084-af21-b489693602fd ro panic=30 quiet splashChange to this:
linux /boot/vmlinuz-6.12 root=UUID=249a1099-3034-4084-af21-b489693602fd ro panic=30 quiet splash single
And finally press F10 or Ctrl+x to boot with your changed options.
This allows you to boot in single-user mode as root.
Convert Windows line endings to Linux in Vim
June 08, 2025
Original solution is here
Short explain
Use Ctrl+q-m to input ^M in Windows
I-i-i, wanna fall from the stars
Short explain
:%s/^M//gUse Ctrl+v-m to input ^M in Linux
Use Ctrl+q-m to input ^M in Windows
I-i-i, wanna fall from the stars
screensaver for console, cmatrix + screen [useless]
July 31, 2024
Install cmatrix (Debian, Ubuntu)
vim ~/.screenrc
sudo apt install cmatrix
vim ~/.screenrc
blankerprg cmatrix -abs -u5 # check out cmatrix -h idle 60 blanker
grep the lines that does NOT contain pattern
July 30, 2024
man grep
-v, --invert-match
Invert the sense of matching, to select non-matching lines.
Example
cat access_log_with_utm_source.log | sudo grep -v "gclid\|msclkid" > no_gclid_msclkid.log