Skip to content

Instantly share code, notes, and snippets.

def extract_attributes(data):
attributes = []
if isinstance(data, dict):
for key, value in data.items():
if key == 'attribute':
attributes.append((value,data.get('value')))
elif key == 'arguments':
for argument in value:
attributes.extend(extract_attributes(argument))

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "your_email@example.com"