hopugop boosted

Vim - how to record a macro 

To record a macro in Vim:

when in command mode


now is recording

perform steps

q to stop recording (you must be in command mode, not insert mode)

to use macro (again you must be in command mode)

@ m (without the space)

(m is the macro identifier and can be any other letter)

to perform macro 3 times

3@ m


[Tip: think ahead and make sure to, for instance, move to the next line so you can perform the macro twenty times without interfering]

#VimTips #Vim #Linux

hopugop boosted

@annika reminds me of a story from Matt Pharr about how in the early days of RenderMan, they forgot to implement a hash algorithm for their hash table, which created a bottleneck that wasn't discovered until Toy Story 2: pharr.org/matt/blog/2018/07/08

hopugop boosted
hopugop boosted
hopugop boosted
hopugop boosted

"BleedingTooth" – zero-click RCE in Linux Bluetooth:



– According to Intel, all Linux kernels with BlueZ support prior to 5.9 are affected.
– Intel recommends updating the Linux kernel to version 5.9 or newer.
– BlueZ is the canonical implementation of the Bluetooth protocol stack.
– CVE-2020-12351, CVE-2020-12352, CVE-2020-24490.

#BlueZ #BleedingTooth #Bluetooth #Linux #Vulnerability #Security #InfoSec #CyberSecurity

hopugop boosted

I was pretty fed up with the behavior of 'df', so I wrote my own diskfree tool.

It's called 'duf', it's written in , and you can get it here: github.com/muesli/duf

On ArchLinux, you can simply install 'duf' from the AUR.

hopugop boosted
hopugop boosted

Vim is Notepad but with Street Fighter controls

hopugop boosted

<SomeLamer> what's the difference between chattr and chmod? <SomeGuru> SomeLamer: man chattr > 1; man chmod > 2; diff -u 1 2 | less
-- Seen on #linux on irc

hopugop boosted

Linux 5.8 Is Released And It The Largest Release Of All Time. There are big changes to many networking drivers, including wireless drivers. The AMD graphics driver has improvements and regressions. You may want to hold off on upgrading to #linux 5.8 until a few minor point releases are made to ensure that the potential problems this kernel release could potentially introduce are ironed out. That is specially true if you have a AMD GPU or use Mellanox networking cards.

hopugop boosted

I have put together another gift to my future self and maybe even future or present you. An easy way to turn off your monitors in the terminal and ultimately with a global shortcut in Plasma. #openSUSE #Linux #Terminal cubiclenate.com/2020/08/03/tur

hopugop boosted
hopugop boosted
hopugop boosted
In 1998, a programmer who had been working on Y2K fixes started to get anxious because he couldn't believe how pervasive the problem was. He switched from company to company trying to get away from it, but everywhere he went he became regarded as the Y2K expert and immediately became the team lead for that company's Y2K contingencies. He finally had a nervous breakdown, quit his job, and decided he wanted to be knocked unconscious when the Y2K actually came about.

A month before Y2K he was put into an artificial coma and cooled down to a near cryogenic easily sustained long term life support.

Unfortunately the life support notification system had a Y2K bug, and no one revived him for 8000 years.

Finally he was found and revived. He woke up, and saw himself surrounded by lots of glass, light, stainless steel, and tall beautiful people in white robes. He asked if he was in Heaven.

They replied, "No, this is Chicago. Actually but it's a lot like Heaven to someone like you."

"Someone like me?"

"You are from the 20th century. Many of the problems that existed in your lifetime have been solved for thousands of years. There is no hunger and no disease. There is no scarcity, or strife between races and creeds."

"What year is it now?"

"Yeah, about that - it's the year 9,998. You see, the year 10,000 is coming up, and we understand you know something called COBOL?"
hopugop boosted

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!