- command line values (for example, -u my_user, these are not variables)
- role defaults (defined in role/defaults/main.yml)
- inventory file or script group vars
- inventory group_vars/all
async def connect(): | |
# Create a version of the websocket client class that handles AWS sigv4 | |
# authorization by overriding the 'write_http_request' method with the | |
# logic to construct an x-amzn-auth header at the last possible moment. | |
def class WebSocketSigv4ClientProtocol(WebSocketClientProtocol): | |
def __init__(self, *args, **kwargs) -> None: | |
super().__init__(*args, **kwargs) | |
def write_http_request(self, path: str, headers) -> None: | |
# Intercept the GET that initiates the websocket protocol at the point where | |
# all of its 'real' headers have been constructed. Add in the sigv4 header AWS needs. |
#Depending on version one of the following files must exist | |
root@host:/ nano /etc/fail2ban/action.d/iptables-blocktype.conf | |
or | |
root@host:/ nano /etc/fail2ban/action.d/iptables-common.conf | |
comment the line |
The range sliders at the top change the values for the force-directed algorithm and the buttons load new graphs and apply various techniques. This will hopefully serve as a tool for teaching network analysis and visualization principles during my Gephi courses and general Networks in the Humanities presentations.
Notice this includes a pretty straightforward way to load CSV node and edge lists as exported from Gephi.
It also includes a pathfinding algorithm built for the standard data structure of force-directed networks in D3. This requires the addition of .id attributes for the nodes, however.
Now with Clustering Coefficients!
Also, it loads images for nodes but the images are not in the gist. The code also refers to different network types but the data files on Gist only refer to the transportation network.