Skip to content

Instantly share code, notes, and snippets.

View saurav3199's full-sized avatar
🎯
Focusing

Saurav Kumar Singh saurav3199

🎯
Focusing
View GitHub Profile
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active May 22, 2024 23:23
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
@keltecc
keltecc / arnault.sage
Last active March 4, 2023 09:39
An example of Miller-Rabin primality test breaking
#!/usr/bin/env sage
# François Arnault. 1995. Constructing Carmichael Numbers which are Strong Pseudoprimes to Several Bases
# https://doi.org/10.1006/jsco.1995.1042
from sys import stderr
from random import choice, getrandbits