Skip to content

Instantly share code, notes, and snippets.

@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

@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 / self-signed-certificate-with-custom-ca.md
Last active March 15, 2021 12:52 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA for use with DNS/Domain Names AND IP addresses for Local Development
@anandkkpr
anandkkpr / README.md
Created January 7, 2016 02:20 — forked from nichtich/README.md
How to automatically deploy from GitHub

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named www-data (may be apache on other systems)
#varnish cache server configuration file, used with drupal 6 and --apache-- nginx
#inspiration from https://wiki.fourkitchens.com/display/PF/Configure+Varnish+for+Pressflow
#with change from obj to beresp of
#http://www.mail-archive.com/varnish-misc@projects.linpro.no/msg02911.html
#and cache HIT or MISS header from somewhere else
backend default {
.host = "127.0.0.1";
.port = "8080";
.connect_timeout = 600s;
.first_byte_timeout = 600s;