Skip to content

Instantly share code, notes, and snippets.

View schneider8357's full-sized avatar

Lucas Schneider schneider8357

View GitHub Profile
# pip install openpyxl olefile
from pathlib import Path
from zipfile import ZipFile
from typing import Dict, List, Union
from openpyxl import load_workbook
import olefile
import sys
import os
from io import BytesIO
from datetime import datetime
@schneider8357
schneider8357 / ovs_add_phy_to_br.txt
Created March 26, 2022 18:15
OVS add physical port
Add physical adapter to the bridge
Get the current active interface and configuration:
$ ip addr
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 52:54:00:91:11:95 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.10/24 brd 192.168.1.255 scope global dynamic eno1
valid_lft 82284sec preferred_lft 82284sec
inet6 fe80::5054:ff:fe91:1195/64 scope link
valid_lft forever preferred_lft forever
@schneider8357
schneider8357 / projeto_2020_m2.ipynb
Created April 15, 2021 15:43
Projeto_2020_M2.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can't make this file beautiful and searchable because it's too large.
0.06,0.06,0.06,0.06,0.06,0.06,0.06,0.06,0.06,0.06,0.07,0.07,0.07,0.07,0.07,0.07,0.07,0.07,0.07,0.07,0.07,0.08,0.08,0.08,0.08,0.08,0.08,0.08,0.08,0.08,0.09,0.09,0.09,0.09,0.09,0.09,0.09,0.09,0.09,0.09,0.10,0.10,0.10,0.10,0.10,0.10,0.10,0.10,0.10,0.10,0.10,0.11,0.11,0.11,0.11,0.11,0.11,0.11,0.11,0.11,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.12,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.13,0.14,0.14,0.14,0.14,0.14,0.14,0.14,0.14,0.14,0.14,0.14,0.15,0.15,0.15,0.15,0.15,0.15,0.15,0.15,0.15,0.16,0.16,0.16,0.16,0.16,0.16,0.16,0.16,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.17,0.18,0.18,0.18,0.18,0.18,0.18,0.18,0.18,0.18,0.18,0.19,0.19,0.19,0.19,0.19,0.20,0.20,0.20,0.20,0.21,0.21,0.21,0.21,0.22,0.22,0.22,0.23,0.23,0.23,0.23,0.23,0.24,0.24,0.24,0.24,0.24,0.24,0.24,0.24,0.25,0.25,0.25,0.25,0.25,0.25,0.26,0.26,0.26,0.26,0.26,0.27,0.27,0.27,0.27,0.27,0.27,0.27,0.28,0.28,0.28,0.28,0.28,0.28,0.29,0.29,0.29,0.29,0.29,0.29,0.29,0.29,0.29,0.30,0.30,0.30,0.30,0.30,0.30,0.30,0.30,0.30,0.30,0.31,0.31,0.31,0.31,0.31,0.31,0.31
We can't make this file beautiful and searchable because it's too large.
1.09,1.10,1.11,1.11,1.11,1.11,1.12,1.14,1.14,1.15,1.15,1.15,1.15,1.15,1.16,1.16,1.16,1.16,1.16,1.17,1.17,1.17,1.17,1.17,1.17,1.18,1.18,1.19,1.19,1.19,1.21,1.22,1.22,1.23,1.23,1.23,1.23,1.24,1.24,1.24,1.24,1.25,1.25,1.25,1.25,1.25,1.25,1.25,1.26,1.26,1.26,1.26,1.26,1.26,1.27,1.29,1.29,1.30,1.30,1.30,1.30,1.31,1.31,1.32,1.32,1.33,1.34,1.35,1.35,1.35,1.35,1.38,1.38,1.38,1.39,1.40,1.40,1.40,1.40,1.41,1.41,1.43,1.44,1.44,1.45,1.47,1.48,1.49,1.49,1.50,1.50,1.51,1.52,1.52,1.53,1.55,1.56,1.57,1.58,1.59,1.62,1.66,1.66,1.67,1.67,1.68,1.69,1.69,1.72,1.72,1.72,1.72,1.72,1.72,1.72,1.72,1.73,1.73,1.73,1.73,1.73,1.73,1.73,1.74,1.74,1.74,1.74,1.74,1.74,1.74,1.75,1.75,1.76,1.78,1.78,1.78,1.78,1.78,1.78,1.79,1.79,1.79,1.79,1.79,1.79,1.79,1.79,1.80,1.80,1.80,1.81,1.81,1.82,1.84,1.86,1.87,1.89,1.91,1.92,1.92,1.93,1.93,1.96,1.96,1.96,1.99,1.99,1.99,2.02,2.03,2.05,2.05,2.06,2.08,2.08,2.09,2.10,2.10,2.11,2.11,2.13,2.13,2.14,2.14,2.14,2.14,2.15,2.15,2.15,2.15,2.15,2.15,2.15,2.15,2.16,2.16,2.16,2.16,2.16,2.16,2.16,2.17,2.17,2.17,2.17
G = nx.readwrite.json_graph.node_link_graph(json.loads(data))
plt.rcParams["figure.figsize"] = [20,20]
plt.rcParams.update({'font.size': 14})
nx.draw(G, node_size=0, pos=graphviz_layout(G), edge_color='r', font_size=16, with_labels=True)
plt.savefig("graph.png")
plt.clf()
plt.cla()
plt.close()