Skip to content

Instantly share code, notes, and snippets.

View chuve's full-sized avatar
:octocat:

Evgeny Chuvelev chuve

:octocat:
View GitHub Profile
@chuve
chuve / work-with-multiple-github-accounts.md
Created May 4, 2023 20:01 — 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
export const cities: any = {
"תל אביב": "Tel Aviv",
גבעתיים: "Givatayim",
חולון: "Holon",
"בני ברק": "Bnei Brak",
"פתח תקוה": "Petah Tikva",
"ראשון לציון": "Rishon Lezion",
הרצליה: "Herzliya",
"ראש העין": "Rosh HaAyin",
רמלה: "Ramla",
@chuve
chuve / nginx-nodejs-cors
Created March 30, 2021 16:38 — forked from mozillazg/nginx-nodejs-cors
Nginx Nodejs CORS to subdomain
server {
listen 80;
server_name subdomain.example.com;
access_log /var/log/nginx/example.access.log;
location / {
if ($http_origin ~* "https?://.*\.example\.com(:[0-9]+)?") {
set $cors "true";
<html>
<title></title>
<head>
<script>
// This block should take place on "PAGE" and before the close tag </head>
'use strict';
(function (global) {
/**