Skip to content

Instantly share code, notes, and snippets.

View bencat-sixense's full-sized avatar

Benoit CATILLON bencat-sixense

View GitHub Profile
@bencat-sixense
bencat-sixense / keeping_repos_in_sync.md
Created February 16, 2024 13:36 — forked from b17z/keeping_repos_in_sync.md
Keeping Downstream Repository In Sync with Upstream Repository

When contributing to a specific repository, you will clone it. That's your little playground now to experiment. But your changes and your repo itself will not be synced up to the main repository you forked from. Here's how to keep it up to date while experimenting with your changes.

  1. Create a remote in your forked/cloned repository pointing to the main repository
git remote add upstream [URL of main repository you forked from]
  1. Fetch the upstream changes
@bencat-sixense
bencat-sixense / ci-yarn-install.md
Created May 4, 2023 08:52 — forked from belgattitude/ci-yarn-install.md
Composite github action to improve CI time with yarn 3+ / node-modules linker.
@bencat-sixense
bencat-sixense / work-with-multiple-github-accounts.md
Created March 17, 2023 16:07 — 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
@bencat-sixense
bencat-sixense / nginxproxy.md
Created February 13, 2020 08:27 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers