Recently I’ve been logged into a laptop remotely a lot. Logging out from “main” session makes my Gnome on Debian 12 go to suspend after a while. To avoid it you just have to tell: Thanks to WinEunuuchs2Unix for the answer I took from Prevent sleep/suspend when not logged in to a specific account; the…
Category: Tricks
Documentations, Tricks
Search and replace in multiple files using vim
Search and replace in multiple files using vim – (source Stack Overflow) It is as simple as Use: The first line sets auto-write mode, so when you switch between files, vim will write the file if it has changed. The second line does your global search and replace. Note that it doesn’t use wq! since…
Documentations, Javascript, Tricks
javascript – Can (a== 1 && a ==2 && a==3) ever evaluate to true? – Stack Overflow
javascript – Can (a== 1 && a ==2 && a==3) ever evaluate to true? – Stack Overflow Yes, it can. IMHO it is one of the several undesirable consequences of loosely typed languages. In fact, according to an almost anonymous user: Worst, it is also possible using the === operator!
Tricks
Versioning data in Postgres? Testing a git like approach – Specfy
Versioning data in Postgres? Testing a git like approach – Specfy is fashinating but I think that most of the time these two proposed alternatives fit most of the needs:
Tricks, vim
5 Must-Have Vim Plugins That Will Change Your Workflow
5 Must-Have Vim Plugins That Will Change Your Workflow. In my case Syntastic: a syntax checking plugin for Vim which runs files through external syntax checkers and displays resulting errors. Fugitive: a Git wrapper for Vim that is self-described as “so awesome, it should be illegal.” Emmet: an extremely useful plugin for web developers. It…
Tricks
How to Download a Browser Without a Browser After Installing Windows
Here’s how to get your favorite browser after setting up a new Windows PC, without touching any other browser beforehand. : How to Download a Browser Without a Browser After Installing Windows
Tricks
User-specific hosts file to complement /etc/hosts
Django, Python, Tricks
Using CSV File as data storage and access
Thanks adamchainz!
Tricks, Wordpress
My little printer-friendly CSS
Here is my little “Printer friendly CSS” that I add to each and every page using Simple Custom CSS and JS I use it with News-box theme but it should work fine with any other “pretty modern” theme. I started reading How to Create Printer-friendly Pages with CSS (local copy)
I used to run du -hsc / |sort -hr | less but it seems that people needs this
dutree is a free, open-source command-line tool for analyzing disk usage, written in Rust programming language that reports disk usage in a tree-like format.