Linux
Why Ptyxis is a Game-Changer for Embedded Terminal Emulation
2024/11/01
When you’re building applications that need terminal-like functionality, embedding a full terminal emulator can feel like overkill. Enter Ptyxis—a lightweight, versatile tool for integrating terminal …
Improving DNF Update Speeds with max_parallel_downloads
2024/10/12
How to improve download speeds during system updates by adjusting the max_parallel_downloads setting in DNF.
recover-disk-space
2024/10/05
In Linux systems, disk space management is crucial, especially when storage is running low. One often-overlooked aspect is the space reserved by the filesystem, known as reserved blocks. These blocks …
Short url to full url
2024/06/19
Most of the Social sites will shorten the links. There are a lot of ways to check the url before you go to the url and get phished :) For example, for bitly you can just add a ‘+’ at the …
Bash script performance issue and remediation
2024/06/17
I was looking at writing some output to files. The output did not vary much but the number of lines was huge. It was long time back so I dont remember the context of the requirement but I needed to …
Run X11 applications on docker or podman
2024/03/29
Found x11docker project in github. This is a very nice project if you are trying to run GUI applications in dockers. It takes the hassle out and helps you run the GUI applications very easily in …
Show Local IP
2023/12/23
You can see the local IP of the machine with the command - ip a. However if you have to use the address in some variable in a scrit. It becomes little tricky, something like […] and the command …
Openvpn files to nmcli connection
2022/11/12
Many times you get openvpn file and when you want to connect to the VPN server, you have to start the vpn client from the cli. How you wish that this was added to NetworkManager so that you could …
scripting – performance improvement with file open
2020/04/20
Sometimes just one line of code can make all the difference. I will show you with example. Here is script with 2 functions. Both are writing some lines of text to a file. First function, “a” I have …
rofi menu with icons
2019/10/21
Here is a quick command to show menu (applications) in simplistic windows managers with icons.
check hard disk rpm or rotation speed
2019/09/23
Lot of times you want to check the disk rpm, especially on the servers to check if it is 7.2K or 10K or 15K rpm disk. How do you do this from linux terminal. Here it is : sginfo -g /dev/<device> …
ssh trick – ssh to remote host with bastion host
2019/09/16
Lot of times, you have to ssh to a server with bastion host. If you dont know what is bastion host then see this: […] Now, in such cases, either you add an entry in “~/.ssh/config” to route the …