Skip to content

Instantly share code, notes, and snippets.

View anitsh's full-sized avatar
🌱
Take your time

Anit Shrestha anitsh

🌱
Take your time
View GitHub Profile
@anitsh
anitsh / clean_code.md
Created January 27, 2021 09:22 — 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

@anitsh
anitsh / astar.py
Created January 1, 2021 14:58 — forked from Nicholas-Swift/astar.py
A* pathfinding algorithm. Please see comments below for a fork of this gist that includes bug fixes!
class Node():
"""A node class for A* Pathfinding"""
def __init__(self, parent=None, position=None):
self.parent = parent
self.position = position
self.g = 0
self.h = 0
@anitsh
anitsh / CaesarCipher.java
Created July 27, 2020 04:15
Google FooBar First Challenge - CaesarCipher
package google.CaesarCipher;
import java.util.*;
/**
* Problem:
* Fortunately for you, the minions aren't exactly advanced cryptographers.
* In their code, every lowercase letter [a..z] is replaced with the
* corresponding one in [z..a], while every other character (including
* uppercase letters and punctuation) is left untouched. That is, 'a'
# This gist will be about Kubernetes practise.
### setting up cluster
https://www.codeproject.com/Articles/5065989/3-Nodes-Kubernetes-Cluster-for-Home-Lab-Quick-Dirt
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/
https://itnext.io/kubernetes-multi-cluster-networking-made-simple-c8f26827813
https://github.com/cloudflare/cfssl
https://github.com/cloudflare/certmgr
https://github.com/containerd/containerd
https://github.com/tmux/tmux/wiki
@anitsh
anitsh / alpine-linux.mb
Created April 22, 2020 18:18
Alpine Linux
https://blog.overops.com/my-alpine-desktop-setting-up-a-software-development-environment-on-alpine-linux
https://thenewstack.io/alpine-linux-heart-docker
@anitsh
anitsh / System Design.md
Created April 17, 2020 09:27 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@anitsh
anitsh / resume.md
Last active April 16, 2020 12:06
Resume

Resume

Anit Shrestha Manandhar

EXPERIENCE

Consultant, Technical Lead Engineer at Leapfrog Aug 2019 - Jan 2020 Kathmandu, Nepal

As the technical lead engineer I am responsible to design, develop and maintain software systems as per the needs of the clients or internal products.