xdg-open
is a very interesting command. With it we can open any
program or URL from the command line. If I were to run xdg-open
https://freakspot.net
, it would open the home page of this website
with my default browser, and then I could execute another command.
One disadvantage is that we can only pass one argument to it, so to
open two web pages we would have to run xdg-open
twice.
Crop multimedia file with FFmpeg
If you only want to edit a multimedia file to crop its beginning, end or
both, the fastest option is to use
FFmpeg. FFmpeg can be installed
in Debian-based distributions with sudo apt install ffmpeg
.
If we want to remove the 10 first seconds of a multimedia file, we only have to execute FFmpeg like this:
ffmpeg -i music.mp3 -ss 10 music2.mp3
After -i
you have to specify the file that you want to edit
(music.mp3
); -ss
followed by 10
indicates the seconds that we want
to remove; finally, you can specify the name of the new file,
music2.mp3
.
If we want to remove both the beginning and the end, we can add the
-to
argument:
ffmpeg -i music.mp3 -ss 15 -to 04:10 music2.mp3
After -to
there must be a position, in this case minute 4 and second 10
(04:10
). There is also the possibility of using -t
, which to get the
same result would be used like this:
ffmpeg -i music.mp3 -ss 15 -t 235 music2.mp3
-t
indicates that it will record into the new file until 235
seconds
have passed . In this case, those new 235 seconds will be recorded after
skipping the first 15
seconds.
YouTube privately with Piped
Just like Invidious, Piped offers a free and privacy-friendly to YouTube.
The advantage of Piped is that it works with SponsorBlock, so you don't waste time putting up with sponsored parts of videos. I've only mentioned the features I find most useful; a more detailed list is available on the project page.
Some disadvantages compared to Invidious are that it does not allow you to sort the videos of a channel according to age or popularity, but simply shows the latest videos of the channel; there is no button to download videos and audio; you do not see a thumbnail of the frame when hovering the mouse over the timeline; the thumbnail of the video does not appear when sharing a link...
Keep reading YouTube privately with PipedHow to destroy Google
The Google business model is based on collecting personal data from users, selling it to third parties and serving ads. The company also enganges in surveillance programs, develops artificial intelligence programs for military purposes and exploits its users, among other things.
It is one of the most powerful companies on the planet. However, Google is a giant with feet of clay that can be annihilated.
Finish off its ad revenue
Google makes money by serving personalised ads based on the information it collects from its users. If people don't see ads, Google doesn't make money. Blocking ads is a way to prevent tracking and make Google lose money, but if you visit Google's pages, Google will still get information it can sell to advertisers. So the easiest thing to do is to block ads and avoid Google sites.
Another idea is to click on all ads with the AdNauseam extension, which also hides them from us so that we don't find them annoying. This method means that Google makes less money from ad clicks and that Google's servers have a little more workload (minimal, but it does add to their costs).
Filling Google's servers with crap
Google lets you upload almost anything to their servers (videos, files, etc.). If the content uploaded to its servers takes up a lot of space and is junk that scares people away from its services (videos with robot voices speaking nonsense, hundreds of videos with noise that take up gigabytes upon gigabytes), the cost of maintaining the servers increases and the company's profit is reduced.
If this is a globally coordinated effort by multiple users, Google would have to start restricting uploads, hiring people to find junk videos, blocking people and IP addresses, etc., which would increase its losses and reduce its profits.
For example, I can create 15-minute videos every hour and upload them to YouTube automatically or semi-automatically. The videos should take up a lot of space. The more resolution, the more colours, the more sound variety, the more frames per second, the more money YouTube will spend to keep those videos on its servers.
The video I show below was generated automatically with ffmpeg
. It is
only two seconds long, but it takes up 136 MB. A similar 15-minute video
would take 61.2 GB.
Reload Bash configuration (.bashrc
)
If you change the Bash configuration file (~/.bashrc
), you must logout
and login for the changes to take effect. You can also execute the
command source ~/.bashrc
or . ~/.bashrc
(they are equivalent).