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: Documentations
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:
Documentations
Datomic – The Ten Rules of Schema Growth
Datomic – The Ten Rules of Schema Growth Data outlives code, and a valuable database supports many applications over time. These ten rules will help grow your database schema without breaking your applications.
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…
Documentations
Upsert in SQL
Inserting and updating data with a single query. Source: Upsert in SQL
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!