Skip to content

Instantly share code, notes, and snippets.

View thamaraiselvam's full-sized avatar
🐼
Inner Peace

Thamaraiselvam (aka) Tham thamaraiselvam

🐼
Inner Peace
View GitHub Profile
@thamaraiselvam
thamaraiselvam / limitReward.txt
Last active August 12, 2021 14:59
CMC reward limit
4
@thamaraiselvam
thamaraiselvam / annepro-custom-layout.json
Created August 7, 2020 12:12
My custom anne pro 2 keyboard layout
{
"name": "thamaraiselvam-custom",
"device": 1,
"model": 5,
"type": "layout",
"data": {
"layer0": [
41,
30,
31,
@thamaraiselvam
thamaraiselvam / vagrantfile
Created April 6, 2020 09:12
create ubuntu instance on local
$setup_consul = <<-SCRIPT
#! /bin/sh
echo "Installing required packages..."
sudo apt-get update
# Other Packages required
sudo apt-get install wget unzip curl vim -y
wget https://releases.hashicorp.com/consul/1.6.2/consul_1.6.2_linux_amd64.zip -O consul.zip
unzip consul.zip
{
"test": "test"
}
### Keybase proof
I hereby claim:
* I am thamaraiselvam on github.
* I am thamaraiselvam (https://keybase.io/thamaraiselvam) on keybase.
* I have a public key ASAqno4Ak_STGnFcDGD-mYzpfWIpT9Yw3Mlfw6V6CAi6ywo
To claim this, I am signing this object:
@thamaraiselvam
thamaraiselvam / tasks.txt
Last active January 9, 2020 04:39
NodeJs Dev Dojo
Task 1: Problem Statement:
Run a nodejs server and create GET, POST, DELETE, PUT endpoints.
AC:
1. Should run on 3000 port
2. Should accept GET Request /hello with name param and it should return output `hello <name>`. Example: /hello?name=pasu
3. Should accept POST Request /new with name param (body) and it should return output `hello <name> - you have got new request`
3. Should accept PUT Request /update with name param (body) and it should return output `hello <name> - you have got have got new update request`
@thamaraiselvam
thamaraiselvam / solon-commands.sh
Created November 16, 2019 19:10
Stolon Commands
Create Cluster
./bin/stolonctl --cluster-name stolon-cluster --store-backend=etcdv3 init
Start sentinal
./bin/stolon-sentinel --cluster-name stolon-cluster --store-backend=etcdv3
Create first keeper
./bin/stolon-keeper --cluster-name stolon-cluster --store-backend=etcdv3 --uid postgres0 --data-dir data/postgres0 --pg-su-password=supassword --pg-repl-username=repluser --pg-repl-password=replpassword --pg-listen-address=127.0.0.1 --pg-port 9000
Create second keeper
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/thamaraiselvam/Library/Caches/go-build"
GOENV="/Users/thamaraiselvam/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
Boy Scout Rule:
Always leave the codebase cleaner than you found it
Code Smells:
It is not a bug but hint of problem that makes your code difficult to understand, extend or maintain
Types:
1.Long Method
Method that does multiple things(Againts SOLID Principles)
@thamaraiselvam
thamaraiselvam / MEAN Stack Cheat Sheet.md
Last active July 2, 2019 11:21
This is my MEAN Stack cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

MEAN Stack Cheat-Sheet

Those who want to become a Full Stack Developer their first choice is MEAN Stack because it has a lot of scopes and easy to learn as well but preparing is hard so Here's a Cheat Sheet - Inspired by The Technical Interview Cheat Sheet.md

Cheating

This list is meant to be both a quick guide and reference for further research into these topics. It's basically a summary of important topics, there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

What the heck is MEAN Stack