Skip to content

Instantly share code, notes, and snippets.

View charlieparkes's full-sized avatar
🎻
k8s will fix this

Charlie Mathews charlieparkes

🎻
k8s will fix this
  • Backend Software Engineer @Quanata
  • Franklin, TN
View GitHub Profile
# We are in client mode
client
## We are creating a tunnel
dev tun
## We use TCP
proto tcp
remote vpn.everest-dev.aws.mintel.com 443
@charlieparkes
charlieparkes / dict_tools.py
Created September 13, 2018 17:00
Python Dict Tools
def update_nested(d, keys, val):
"""Updates a nested dictionary value.
Args:
dictionary (dict): The dict we'll be updating
keys (list): A set of keys pointing to a subvalue of a dict e.g. ['a', 'b'] -> dict['a']['b']
val: A new value to set at dictionary[key1][key2][..]
Returns:
dict: Updated dictionary