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
Morning Session:
Debug Applications faster:
☐ Angular -> Debug via Chrome Dev Tools
☐ NodeJS -> Auto Attachment
Angular :
Component Communication:
☐ Parent -> Child Via @Input
☐ Child -> Parent Via @ViewChild
☐ Child -> Parent Via @Output EventEmitters
Introduction:
☐ What is Angular?
☐ Why is Angular?
Start:
☐ How to Install?
☐ How to create App?
☐ How to run App?
Architecture:
OOP concepts - DONE
Class, Constructors, Inheritance/asbstract, Extendable, Methods, Typescript - DONE
Database:
RDBMS:
Queries , Joins, Normalization, Advantages, Disadvantages
Mongo Queries, Replica set, Sharding, Advantages, Disadvantages
Difference between mysql no sql
online nosql services
elastic search
Pair programming
- State what you know
- Ask questions
- Start Simple
- Should be extendable
- Write tests
Data structure
-------------------
tree ( Eg: Filesystem tree, PATH /usr/home/tom)
MongoDB Design patterns based on application usage perspective:
The scheme depends on your application use case
Data Access Patterns
Number of reading vs update
what is the size of expected documents
Performance issues in MongoDB:
Schema Design:
{
{
"Version":"2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObjectAcl",
"s3:GetObject",
@thamaraiselvam
thamaraiselvam / nginx.conf
Created June 19, 2018 11:23
Working Nginx + Multisite + localhost + linux configuration
server {
##DM - uncomment following line for domain mapping
#listen 80 default_server;
server_name dev.multisite.com;
##DM - uncomment following line for domain mapping
#server_name_in_redirect off;
@thamaraiselvam
thamaraiselvam / git.txt
Created April 17, 2018 10:33
How to change author name/email for past commits
git filter-branch --env-filter '
WRONG_EMAIL="wrong@example.com"
NEW_NAME="New Name Value"
NEW_EMAIL="correct@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then
export GIT_COMMITTER_NAME="$NEW_NAME"
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
fi
@thamaraiselvam
thamaraiselvam / Bash.sh
Created February 12, 2018 12:46
Fix WP Time Capsule , Cannot copy bridge issue
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
We rule the world. …
Nothing happens in our society without software. Nothing….
Without software: Phones don't ring. Cars don't start. Planes don't fly. Bombs don't explode. Ships don't sail. Ovens don't bake. Garage doors don't open. Money doesn't change hands. Electricity doesn't get generated. And we can't find our way to the store. …
I will not produce harmful code.
The code that I produce will always be my best work. I will not knowingly release code that is defective either in behavior or structure.