Skip to content

Instantly share code, notes, and snippets.

View Pratham82's full-sized avatar
🎯
Focusing

Prathamesh Mali Pratham82

🎯
Focusing
View GitHub Profile

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

{"lastUpload":"2020-11-03T12:11:45.710Z","extensionVersion":"v3.4.3"}
[
{
"author": "Alan Kay",
"quote": "Don't worry about what anybody else is going to do. The best way to predict the future is to invent it. "
},
{
"author": "Donald Knuth",
"quote": "Premature optimization is the root of all evil (or at least most of it) in programming. "
},
{
Follow below steps to add multiple accounts -
step 1:
Goto .ssh folder and generate ssh keys for all your github accounts
$ cd ~/.ssh
$ ssh-keygen -t rsa -b 4096 -C "personal_email_id"
# save as id_rsa_personal
$ ssh-keygen -t rsa -b 4096 -C "work_email_id"
# save as id_rsa_work
@Pratham82
Pratham82 / clean_code.md
Created May 15, 2023 20:24 — 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