Skip to content

Instantly share code, notes, and snippets.


Russell russellballestrini

View GitHub Profile
View dojo-
*** Starting uWSGI (64bit) on [Tue Oct 13 16:22:12 2020] ***
*** Starting uWSGI (64bit) on [Tue Oct 13 16:22:12 2020] ***
compiled with version: 8.3.0 on 13 October 2020 15:53:38
os: Linux-4.14.193-149.317.amzn2.x86_64 #1 SMP Thu Sep 3 19:04:44 UTC 2020
nodename: ip-10-100-9-21.ec2.internal
machine: x86_64
clock source: unix
detected number of CPU cores: 2
current working directory: /app
detected binary path: /usr/local/bin/uwsgi
russellballestrini / sts2env
Last active Aug 2, 2022
Configure your shell with temporary AWS environment variables from
View sts2env
#!/usr/bin/env python
How to use:
eval $(eval "aws sts assume-role --role-arn arn:aws:iam::0123456789:role/the-role-name --role-session-name my-aws-prod | ./sts2env")
Then run `env` and you should see the environment vars in your shell.
View flatten an adjecent list depth first in two ways
from collections import (
g = OrderedDict()
g["root"] = ["a", "b", "c"]
g["a"] = ["e","f","g"]

Keybase proof

I hereby claim:

  • I am russellballestrini on github.
  • I am russellbal ( on keybase.
  • I have a public key ASAgpdRTP4uDKmokgkNTTJyZcGRM9zecQ_CT79SejupRwAo

To claim this, I am signing this object: