Posts

5 things...

1. First hour of the morning is very important 2. Always learn new things 3. Learn to say no 4. Mantain a todo list 5. One task at one time, no multitasking

The magic power behind sit ups

How to do squats? Feet slightly wider than shoulder-width Toes rotated out slightly Think about sitting on your hips. In this way, hips will go back first before the knees could bend. And knees will bend less this way. Push hips back first (back will also go back slightly) then go down (and bend the knees). Lower back should not be stretched much, as people usually do while doing squats with bar. Keep your back straight or natural. You shouldn't feel your tail being pushed up. Pushing through the heal, you should feel your weight on your heel. Head and chest should be up. Lowering down, 90 degrees parallel to the ground. src: https://www.youtube.com/watch?v=otzWCWpuW-A&t=454s

Web security fundamentals

Image
  Importance Type of attackers Type of attacks     Attacks on Client side     Attacks on CDN side     Attacks on Server side XSS: Cross-site scripting CSRF: Cross-Site Request Forging Click jacking 3rd Party Access Man in the middle HTTPS downgrade Sources Importance Website security is important to protect your business, brand, and website reputation and also prevent financial loss. You will be able to protect your  website reputation  and retain customers and/visitors. Type of attackers Black hat hackers: A black hat hacker is a hacker who violates computer security without permission, for their own personal profit or out of malice.  Grey hat hackers: They also don't have permission to enter into the system, but they break into it. Making no damage, can report the vulnerabilities as well. They do it mostly due to curiosity.  White hat hackers: They break into the system but with permissions. They get paid and hence make ...

Web security | Web development part 1

Table of contents: Problem  Problem Feature and deadlines vs Security Web development is less focused on how could things go wrong and more towards how to load the page faster. It's easier to attack now as it was earlier, due to the availability of various tools.      Hence the dev ought to make sure, that his feature not just won't break but, also mischief can't be caused. Type of attackers Black hat hackers: cause damage, hold(encrypt) the data for some ransom, for their personal gain. Grey hat hackers: They also don't have permission to enter into the system, but they break into it. But make no damage, can report the vulnerabilities as well. They do it mostly due to curiosity.  White hat hackers: Break into the system but with permissions. They get paid and so make money "bug bounties".  Type of attacks:     Attacks on  Client side: Click jacking XSS: Cross side scripting CSRF 3rd party access     Attacks on:   CDN side Reso...

Clear terminal with a shortcut

Hey welcome to my blog. There is a simple command to clear out the terminal.  Just hit this shortcut: CMD + k

Monitor mac from terminal | htop command in MAC

Usage: To analyse CPT usage, memory usage, taks running. htop command in Linux system is a command line utility that allows the user to interactively monitor the system’s vital resources or server’s processes in real time. htop is a newer program compared to top command, and it offers many improvements over top command. htop supports mouse operation, uses color in its output and gives visual indications about processor, memory and swap usage. htop also prints full command lines for processes and allows one to scroll both vertically and horizontally for processes and command lines respectively. Syntax: htop [-dChusv] Understand the columns: PID: ProcessId UserId: User through which process is running Priority: 0 to 40 NI: The nice value of the process, which affects its priority. (-19highest to 19lowest) VIRT: virtual memory being used by the process RES: How much physical RAM the process is using, measured in kilobytes. SHR: How much shared memory the process is using. S: The curre...

Learning Graphql | A query language for your API | Part1

What is Graphql GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools. Rest is used to created the APIs, while Graphql sits in front of the API. Graphql can sit in front of an existing API as well.  You can still have a API underneath Graphql. Graphql is just a spec, what it can, it should, would do. Facebook created GraphQL-JS, which is an JS implementation of graphql spec in JS. It gives power to client, to request the data that they want. Not more, not less.  It's strongly types, like typescript.  Graphql is kind of SQL for your API. Since it's just a query language.  Rest vs graphql Rest is an interface for building api, graphql is a query language. They do similar things but d...