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 / PY0101EN-4.2_API_2.ipynb
Created April 4, 2021 16:31
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / 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