I hereby claim:
- I am svdgraaf on github.
- I am svdgraaf (https://keybase.io/svdgraaf) on keybase.
- I have a public key ASCNRi7ZhWzZoXGXEv3E6dxE6R62g1x_e5w_22l1u0ZrJgo
To claim this, I am signing this object:
| import pygraphviz as pgv | |
| class MachineGraph(object): | |
| def get_graph(self, title=None): | |
| """Generate a DOT graph with pygraphviz.""" | |
| state_attrs = { | |
| 'shape': 'circle', | |
| 'height': '1.2', | |
| } |
I hereby claim:
To claim this, I am signing this object:
| version: 0.1 | |
| phases: | |
| pre_build: | |
| commands: | |
| - pip install awscli | |
| build: | |
| commands: | |
| post_build: | |
| commands: |
| #!/usr/bin/env python | |
| import boto3 | |
| import requests | |
| ec2 = boto3.resource('ec2') | |
| # fetch the instance id | |
| response = requests.get('http://169.254.169.254/latest/meta-data/instance-id') | |
| instance_id = response.text |
| # pip install pyminifier | |
| # pip install yaml | |
| import subprocess | |
| import os | |
| import sys | |
| current_dir = os.path.dirname(os.path.abspath(__file__)) | |
| import yaml |
| #!/usr/bin/env python | |
| import os | |
| import time | |
| from slackclient import SlackClient | |
| slack_token = os.environ["SLACK_API_TOKEN"] | |
| sc = SlackClient(slack_token) | |
| stuff = { | |
| "<@U8Q1UCGPM>": 243, # This is the slack user id | |
| "@whatever": 2, # Regular stuff also works |
| import os | |
| import requests | |
| import unittest | |
| import vcr | |
| dir_path = os.path.dirname(os.path.realpath(__file__)) | |
| dd_vcr = vcr.VCR( | |
| cassette_library_dir="%s/cassettes" % dir_path, | |
| path_transformer=vcr.VCR.ensure_suffix(".yml"), |