Skip to content

Instantly share code, notes, and snippets.

View RajvirS99's full-sized avatar
:octocat:
Web Dev

Rajvir Singh RajvirS99

:octocat:
Web Dev
View GitHub Profile
@RajvirS99
RajvirS99 / work-with-multiple-github-accounts.md
Created March 27, 2023 11:27 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@RajvirS99
RajvirS99 / Husky_readme.md
Last active June 20, 2022 08:18
Install husky pre-commit in Node project

Configure Husky in these steps -

  1. Go to project directory using the command cd project_folder.
  2. open the terminal in the VS Code or open the terminal/command line from that directory
  3. Run the command npm install husky lint-staged -D

There you go, you can now see the package.json file. You will see the husky installed in devDependencies.

Test the project by committing. You will see Husky pre-commit will intiate before committing.

@RajvirS99
RajvirS99 / node_nginx_ssl.md
Created August 27, 2021 17:11 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@RajvirS99
RajvirS99 / https-on-localhost.md
Created March 17, 2021 14:38 — forked from adnan360/https-on-localhost.md
Use HTTPS on Localhost (XAMPP, Windows)

Sometimes some websites require https to work. This can be useful in those cases.

This has been tested with XAMPP (PHP 7.0.8) on Windows 7. Please see the Reference links at the end if in confusion about some step.

STEP 1: Editing Configs

Open:

C:\xampp\php\php.ini
@RajvirS99
RajvirS99 / Contributing.md
Created November 27, 2020 08:45 — forked from MarcDiethelm/Contributing.md
How to contribute to a project on Github

This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.


Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.