Skip to content

Instantly share code, notes, and snippets.

@stephenfrench9
stephenfrench9 / star_and_star_star.py
Created October 3, 2022 19:15
Basic usage for * and ** operators
# the * and ** operator in assignment, reference, and function signatures
# * Reference: unroll the list. Something has to catch it:
a = ['aaa', 'aa']
[*a]
{*a}
def two_i(a, b):
print(a)
print(b)
two_i[*a]
@stephenfrench9
stephenfrench9 / github-keys.md
Last active February 15, 2023 18:57
Simplified instructions to add ssh keys to Github, with optional deep dive into `git` toolchain
  1. Make a key pair
    ssh-keygen -t ed25519 -C "stephenfrench9@gmail.com" -f ~/.ssh/github
    
    (press enter instead of typing a passphrase. note that -C is just a comment)
  2. Configure your ssh tool to use the keypair by modifying ~/.ssh/config
    echo '
    HOST *github*
      AddKeysToAgent yes