Skip to content

Instantly share code, notes, and snippets.

@windsting
windsting / work-with-multiple-github-accounts.md
Created March 29, 2023 22:32 — 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
@windsting
windsting / github-pandoc.css
Created November 13, 2018 06:40 — forked from dashed/github-pandoc.css
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@windsting
windsting / mkcd
Created August 3, 2017 05:10 — forked from briansorahan/mkcd
bash alias for a 'mkcd' command which creates a dir and cd's into it
mkcd() { mkdir -p "$@" && cd "$@"; }
@windsting
windsting / installtmux.sh
Last active August 29, 2015 14:25
Install tmux 1.8 on a fresh CentOS 6.4 machine
#!/bin/bash
wget http://downloads.sourceforge.net/tmux/tmux-1.8.tar.gz
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar zxvf tmux-1.8.tar.gz
tar zxvf libevent-2.0.21-stable.tar.gz
yum install gcc kernel-devel make ncurses-devel -y