Skip to content

Instantly share code, notes, and snippets.

View ans1genie's full-sized avatar
🍅
Focusing

Anas AIT BAHA ans1genie

🍅
Focusing
View GitHub Profile
@ans1genie
ans1genie / git-notes.md
Created August 10, 2021 08:25
some git useful commands

TLDR:

It helps you to find out the commit ID of the current HEAD

git rev-parse HEAD

OR if you want the shorter commit

@ans1genie
ans1genie / create-mysql-user-grant-privileges.md
Created September 5, 2024 10:47
Creating a New MySQL/MariaDB User and Granting All Privileges

Creating a New MySQL/MariaDB User and Granting All Privileges

The provided SQL commands are used to create a new user in MySQL or MariaDB and grant that user all privileges. Here's what each line does:

  1. CREATE USER 'user'@'%' IDENTIFIED BY 'pwd';

    • This command creates a new user named user with the password pwd.
    • The @'%' part specifies that this user can connect from any host.
  2. GRANT ALL PRIVILEGES ON *.* TO 'user'@'%';

  • This command grants the user user all privileges on all databases and tables (*.*).
@ans1genie
ans1genie / namecheap_coupon_code_20_off.md
Created September 19, 2024 09:22
Namecheap Coupon Code: 20% Off Always Working

Namecheap Coupon Code: 20% Off Always Working

Coupon Code: COUPONFCNC

Link: Support me on Buy Me a Coffee

Don't forget to tell us how much money this saved you. Enjoy! 😃