Short URL: caseywatts.com/electronworkshop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % Copyright 2016 by Christoph Walsh | |
| % | |
| % This file may be distributed and/or modified | |
| % | |
| % 1. under the LaTeX Project Public License and/or | |
| % 2. under the GNU Public License. | |
| % Used material from: | |
| % https://github.com/edasubert/beamerMaterialDesign and | |
| % http://ctan.mackichan.com/macros/latex/contrib/beamer/base/themes/outer/beamerouterthememiniframes.sty |
- Log into the container and create an empty directory, this will be the mount point
- Log out and stop the container.
- Open to your container's config file
- For regular LXC containers:
/var/lib/lxc/mycontainer/config - For unprivileged LXC containers:
$HOME/.local/share/lxc/mycontainer/config
- For regular LXC containers:
- Add a new line above the
lxc.mountdirective, that follows the format below. Substitute proper paths as necessary:lxc.mount.entry = /path/to/folder/on/host /path/to/mount/point none bind 0 0
- Both of these paths are relative to the host machine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # coding: utf-8 | |
| import matplotlib | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| import squarify | |
| import platform | |
| # print versions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import networkx as nx | |
| import graph_tool as gt | |
| def get_prop_type(value, key=None): | |
| """ | |
| Performs typing and value conversion for the graph_tool PropertyMap class. | |
| If a key is provided, it also ensures the key is in a format that can be |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import networkx as nx | |
| import graph_tool as gt | |
| def get_prop_type(value, key=None): | |
| """ | |
| Performs typing and value conversion for the graph_tool PropertyMap class. | |
| If a key is provided, it also ensures the key is in a format that can be |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| # Define connection details | |
| server_url = 'http://192.168.0.200:8096' | |
| username = 'User' | |
| password = 'Password' | |
| # Build json payload with auth data | |
| auth_data = { | |
| 'username': username, |