Skip to content

Instantly share code, notes, and snippets.

View hamzaakhtar953's full-sized avatar
🎯
Focusing

Muhammad Hamza Akhtar hamzaakhtar953

🎯
Focusing
View GitHub Profile
@hamzaakhtar953
hamzaakhtar953 / jwt_rsa256.md
Last active January 16, 2022 23:09
Generate RSA public/private key pairs for JWT

Generate RSA public/private key pairs for JWT

NOTE: Run the following commands in linux environment to get private and public keys and copy/paste in your environment variables

STEP 1:

ssh-keygen -t rsa -b 4096 -m PEM -f rs256.key (NOTE: Don't add passphrase)

STEP 2:

openssl rsa -in rs256.key -pubout -outform PEM -out rs256.key.pub

@hamzaakhtar953
hamzaakhtar953 / tips.md
Last active August 25, 2021 23:49
ReactJS Project Deployment Tips

Folder Creation or Write Issues Ubuntu. (Set permissions for the current user)

  • cd /var/www/ (Jump to the directory first where you want to set permissions)
  • sudo chown -Rv root:$USER . (The Dot is inclusive. Same for below)
  • sudo chmod -Rv g+rw .
  • sudo chmod a+rwx /path/to/file (Use this command for write permissions)
  • Now try creating a folder

404 Issue during refresh. Try the following configuration

@hamzaakhtar953
hamzaakhtar953 / PY0101EN-4.2_API_2.ipynb
Created April 4, 2021 16:31
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-4-2-WriteFile.ipynb
Created April 3, 2021 19:29
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-3-4-Classes.ipynb
Created April 2, 2021 17:22
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-3-3-Functions.ipynb
Created March 30, 2021 14:40
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-3-1-Conditions.ipynb
Created March 30, 2021 12:28
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-2-1-Tuples.ipynb
Created March 29, 2021 12:52
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / PY0101EN-1-1-Types.ipynb
Created March 28, 2021 14:54
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hamzaakhtar953
hamzaakhtar953 / sublime_as_git_editor.md
Last active August 28, 2020 03:46
Setting Sublime as you git editor