Search
In case Ipify stops being free: https://dnsleaktest.com/ will show you your IP. I don't know if they have an API, but it's easy to parse the HTML: https dnsleaktest.com | rg '\d+\.\d+\.\d+\.\d+' -...
Problem How do I find product and vendor names for use with a xorg.conf file? Neither the xorg.conf nor the xinput manuals specify how to do this. xinput lists info, but the output lacks column ...
Some pacman functions require sudo. When I forget the sudo, you get: error: you cannot perform this operation unless you are root. I then have to press the keys: up, home, s, u, d, o, space, en...
Piper can be used for this. All mice supported by Piper (actually libratbag) are a result of the community reverse engineering the mouse protocol. It will not support all mice, but only selected on...
One way is to use grep: $ grep --count ^ /path/to/the/file The ^ character matches a start of a new line, so it basically counts the number of starting lines.
In Unix systems like Linux, some commands are considered dangerous and only the root user can run them. Normally, you don't login as root. So when you want to run dangerous commands, you must first...
How can a file list be manually filtered with a gitignore file. I want to do the equivalent of git ls-files, but it should work even if I remove .git, so I can't use git(1). Currently, I'm doing ...
You can fake out git as long as you have some empty Git repository available somewhere. git --git-dir=path-to-empty-repo/.git \ ls-files --others --exclude-standard
I'm not an expert on this at all, but so far there are no answers, so I'll try one. "Synchronization" is in the context of multithreading. For those who don't know how multithreading works: Multi...
Use netstat -lp. Typically in such a scenario you will likely be mostly interested in IP sockets, in which case you can also add -A inet,inet6. To get numerical port numbers, add -n as well. (See ...
This can be done by setting the LDAPTLS_REQCERT environment variable to never. For example like this when issuing the command: LDAPTLS_REQCERT=never ldapsearch -H ldaps://example.com:636 ...
I use unrar to extract rar archives sometimes: UNRAR 6.24 freeware Copyright (c) 1993-2023 Alexander Roshal Sometimes the archive root has several files, so if I do unrar x foo.rar it will...
How to pretty print XML in a shell? I have command-line tool which outputs XML in a single line, totally unreadable. I would like something to pipe this into, to turn it into human readable XML wi...
No wonder it's hard to find good programs - it's no longer necessary! At some point this became a built in part of Xorg via xinput. The process is something like this: xinput list and find the ...
Of course every language has some kind of random library... But can you generate custom random strings with just basic CLI tools? For example, we have /dev/random which provides a stream of random...
/dev/random is a stream of every possible value. You're supposed to filter it to take the ones you want. This is efficient, although if the values you want are such that only, say, 1% of what comes...
On my current setup (running Linux Mint 20.3 Cinnamon), I have an administrative user and several ordinary users. I intend for all of these users to be in the same group, which happens to have the ...
Here's the relevant ArchWiki page. The gist of it is that most of those warnings are probably for some fairly obscure hardware, and can be just ignored (provided that your system indeed works fine...
Do any of the cron implementations allow you to manually trigger cron jobs (stuff in your crontab) right now, in the exact same manner as they would have when triggered on their usual schedule, exc...
Gnome disks can create a disk image, and then restore it to the new one. The new drive has to be same size or larger, although this is obvious. If it is larger, the partition will still be small, ...
I have no experience with dunst, but generally you want a global service-level dropin file in /etc/systemd/system/service.d/ with OnFailure= setting in it. This way it gets added to all services ru...
My primary drive is partitioned basically like so (only roughly to scale): / /home junk v v v |xx###############...
Yup that's the recommended way to do it. Wants adds the network-online.target as a soft dependency.[1] Systemd will try to start it if it isn't up already. Networking should work after this target...
Is it practical to use libostree for user files? Or is it too specialized for tracking an entire OS? I am not familiar with libostree, but sounds like it's "Git for filesystem trees". Seems like t...
There are a few ways to do this. From the documentation you linked: When the variable $SYSTEMD_UNIT_PATH is set, the contents of this variable overrides the unit load path. Option 1: Edit tha...