Avatar
Martin Tomes
79c242e1e246d9b1290bb43761d0196e579567f5a92250da230998a462e399ed
#Bitcoin #Linux 🐧 #Devops 🐳 #Kubernetes ☸️ #AI 🤖 #EdgeComputing 📡

On my way to #vimalism (#vim minimalism).

Thanks to learning the standard #unix editor (#ed) I was able to reduce number of my plugins to 7 and get rid of #Neovim (which I used just for pretty markdown rendering which I no longer need).

I am able to handle everything using the VIM magic 😎

#sysadmin #linux

Switched from #ed the standard #UNIX editor to its extended version and hit a snag: "set ignorecase" in .exrc file made my substitutions in #ex too aggressive! Regex case-sensitivity matters! 😅

Sometimes it's good that #ed does not have it's config file 😎

In case you do not know, you should start looking for a new job. Seriously.

The standard UNIX editor is great not only for learning #Vim but also #sed. it was built upon #ed, which is also a scripting language! You can write ed commands into a file and run it as ed input. Magic!

(you don't need to learn sed, actually learn #perl instead 😎 and thank me later)

The coolest thing about learning the standard #UNIX editor is that advanced #VIM techniques are standard in ed. For example, the only practical way to edit text in #ed is through #regex and substitution, which is considered magical in VIM.

To learn #vim properly, start with the standard #UNIX editor :) No need for syntax highlighting. For anything else, use the command line. Formatting text in #golang? No problem. Just run #gofmt directly from #ed.

Do you use the standard #UNIX editor? All text editors from the Vim family are successors of #ed, and ed commands work there. They are considered "advanced."

Many people show off with them on YouTube without even knowing this. I’m not showing off; I learn and use ed to properly understand and use #Vim. 😎

Editing a #golang code with the standard #UNIX editor. No #VIM, #neovim, #vscode , no syntax highlight or anything like else. This has the 70's vibe :) #ed

Whats you favourite feature? One of my top 5 is that ALL types have implemented its string method so that we can print anything :)

DevOps programming path

The best programming path for #DevOps, #SysAdmin, #Infrastructure #Platform Engineers, #SRE etc is: POSIX Shell -> Perl -> Golang.

Change my mind 😎

Great, I will take a look!

Wow, except starship and ripgrep I do not know the tools you are mentioning at all! Thanks for tips, I will check them ;)

My life has become much easier since I started using the "bat" utility instead of "cat". Bat is a "Better cAT", offering significant improvements. I use it with other terminal file utilities to display file contents with syntax highlighting, especially alongside "#fd" and "#fzf".

Are you aware of bat? Anyone using it here?

#unix #linux #linuxadmin #sysadmin #bat #cat

After using and paying for Proton Drive by nostr:nprofile1qyv8wumn8ghj7mn0wd68ytnrda5kuen4dejzuctswqq32amnwvaz7tmjv4kxz7fwd4hhxarj9ec82csqyr084f3mr3lgp8mx5eaae54afj2j5zwd2thqrmtakdvdpxadjluyq92zm4e for a year, I suddenly found nearly all my files (>10k) duplicated with strange "(# Name Clash" in their names, doubling my storage usage.

I opened a support ticket, but they told me to delete all the files manually! I replied that they have no moral right to make me delete tens of thousands of files due to their error and asked for a script to remove the duplicates. They refused.

So, I made my own and am sharing it publicly. Maybe it will help someone.

F*ck you, Proton—you should hire people like me, not these lazy bastards you employ 😎

https://github.com/martin-tomes/bfu/blob/main/bin/rf

Proton Drive suddenly duplicated all my local files. Time to get my hands dirty and code #Perl script which would recursively remove all these files.

#programming #sysadmin #proton

People are increasingly struggling to live in this world of probability and coincidence.

I am trying to understand this probabilistic world. I began this journey by discovering Hanlon's Razor. Do you know it?