Wednesday, March 30, 2022
Wednesday, September 15, 2021
Git: How to remove and Ignore DS_Store file
When you work with Git in a Mac. You might notice .DS_Store file is added to your git commit unintentionally.
Remove .DS_Store File
find . -name "*.DS_Store" -type f -deletehttps://askubuntu.com/questions/377438/how-can-i-recursively-delete-all-files-of-a-specific-extension-in-the-current-di
Ignore .DS_Store File in your git commit
echo .DS_Store >> ~/.gitignore_globalAnd let git know that you want to use this file for all of your repositories:
git config --global core.excludesfile ~/.gitignore_global
Find Details here : git ignore
Tuesday, August 3, 2021
Install Maven on MacOS Catalina
There might be many ways to install Maven on mac but I found the best way to install maven on mac is to using homebrew:
Step1: install homebrews (if you don't have already)
Follow this URL : how-to-install-homebrew-on-mac
Step 2 : Install Maven:
https://mkyong.com/maven/install-maven-on-mac-osx/
Extra tips.
Where I can find maven local repository:
>> ~/.m2
Sunday, June 27, 2021
What are Design Fundamentals?
Building scalable, production-ready applications is both art and science.
Design Fundamentals comes in a lot of different flavours. Specifically they can be divided in to four categories. Categories that are equally important.
First Category
- For Example:
- Client Server Model
- Network Protocol
- Microkernel Pattern
- Microservices Pattern
- Layered Architecture Pattern
- Event-based Pattern
- Space-based Pattern
- https://dzone.com/articles/5-major-software-architecture-patterns
- https://herbertograca.com/2017/07/28/architectural-styles-vs-architectural-patterns-vs-design-patterns/
Second Category
- Availability
- Latency,
- Throughput
- Redundancy,
- consistency
Third Category
- Load Balancer
- Proxy
- Cache
- Rate limiting
- leader election
Forth Category:
- Zoo Keeper
- Nginx
- Redis
- Amazon S3
- Google Cloud Storage
Thursday, December 17, 2020
Saturday, December 12, 2020
How Computer works
How Computer Works
How Computer Executes a Program
How Data is transmitted over the cable
How Does Internet Works
Sunday, April 5, 2020
How to return static content from nginx
Some times you might need to return static response from nginx. for example validating file upload limit
location @413_xml {
default_type "text/xml; charset=UTF-8";
return 413 '<?xml version="1.0" encoding="UTF-8"?><result><status><interfaceId>cabinet.file.insert</interfaceId><systemStatus>NG</systemStatus><message>Image size Error(Capacity)</message><requestId>$request_id</requestId><requests/></status><cabinetFileInsertResult><resultCode>3008</resultCode></cabinetFileInsertResult></result>';
}
5 Strategies for Getting More Work Done in Less Time
Summary. You’ve got more to do than could possibly get done with your current work style. You’ve prioritized. You’ve planned. You’ve dele...
-
“Snagit is the most useful tool you will find to combine pictures, words, and other objects into a meaningful illustration…”
-
Sometimes just to get a quick success build you might need to disable/ignore/skip some of the munit test cases. you can do you by double ...
-
Summary. You’ve got more to do than could possibly get done with your current work style. You’ve prioritized. You’ve planned. You’ve dele...
