Skip to content

Instantly share code, notes, and snippets.

View anandkkpr's full-sized avatar

Anand anandkkpr

View GitHub Profile
@anandkkpr
anandkkpr / MongoDB Admin and User Creation.md
Last active October 27, 2020 19:46 — forked from lgarner/MongoDB Admin and User Creation.txt
MongoDB admin and database user and role creation
@anandkkpr
anandkkpr / clean_code.md
Created November 5, 2020 13:58 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

What's this about?

I am a lifetime Windows user and (like many people) I am used to organising important files on Windows machines by starting the file name with _ (underscore).

I found a hack that allows users to enable update a locale language def file in Debian (Ubuntu Mint) here. This didn't work fully on Fedora so, after some help from the folks on Fedora Forum, I was able to figure out how to implement a system-update resilient (most of the time) way to enable "sort underscore in file system first" sorting (aka collating). Here's the thread on Fedora Forum.

Some Notes

First and most important: locale-gen does not exist on fedora. The file mentioned by @markos was a "bash completion" file - not sure