Did you know that you can replace grep and sed by perl -pe and have the full power
of Perl regexs?
Examples:
Imagine you have a file with comma-separated Odoo module names and you want to extract all those that:
payment.Using only grep or sed is very complicated because they don’t support
negative lookaheads.
However, with Perl it’s “very” easy:
“How to install the application _______?”
I’m sure you’ve asked yourself. If you use GNU/Linux, the usual answer is: by installing a software package.
But… there are many package formats. How do you know which one is best?
Let me tell you.
I say “system” because, by installing a package in this format, what we are really doing is allowing a new software component to become part of our operating system.
Sometimes you may have a webcam that shows flickering.
How to solve it?
In my case, I have a Logitech C920 HD Pro and I was having this problem.
Usually it is because the camera is working at 60 Hz and the monitor at 50, or vice versa.
For my particular camera, it was simple:
On Linux it is also easy to do if you install the gtk-v4l package. If you are on Fedora 35:
Having a Windows virtual machine in Linux has a lot of utilities:
It turns out getting it is way easier than what you imagine:
What to do when you find this 💩 in the terminal?
➤ sudo apt-get remove linux-image-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: linux-image-generic (= 4.4.0.143.151) but it is not going to be installed
linux-modules-extra-4.4.0-143-generic : Depends: linux-image-4.4.0-143-generic but it is not going to be installed o
linux-image-unsigned-4.4.0-143-generic but it is not going to be installed
linux-signed-image-generic : Depends: linux-image-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
It’s a little hard, but let’s go…