This file contains 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/python3 | |
from bcc import BPF | |
import re, signal, sys | |
from time import sleep | |
# for influxdb | |
from init_db import influx_client | |
from db_modules import write2db | |
from datetime import datetime |
This file contains 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 python | |
from random import randint | |
import sys | |
import mysql.connector | |
NUM_EMPLOYEES = 10 | |
def init_db(): |
This file contains 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
sudo apt-get update | |
sudo apt-get -y remove llvm-9 | |
sudo apt-get -y install bison build-essential cmake flex git libedit-dev libllvm6.0 llvm-6.0-dev libclang-6.0-dev python zlib1g-dev libelf-dev libfl-dev | |
git clone https://github.com/iovisor/bcc.git | |
mkdir bcc/build; cd bcc/build | |
cmake .. | |
make | |
sudo make install | |
cmake -DPYTHON_CMD=python3 .. # build python3 binding | |
pushd src/python/ |
This file contains 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
<template> | |
<div class="accept-container"> | |
<div class="go-back" v-show="goBackState" @click="goBack">GoBack</div> | |
<ul> | |
<li v-for="item in webAddress" v-bind:key="item"> | |
<a :href="item.link" target="showHere" @click="showIframe">{{item.name}}</a> | |
</li> | |
</ul> | |
<iframe v-show="iframeState" id="show-iframe" frameborder=0 name="showHere" scrolling=auto src=""></iframe> |
This file contains 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
# Licensed under the Apache License, Version 2.0 | |
# | |
# 15-Feb-2017 Sasha Goldshtein Created this. | |
# 20-Apr-2021 Meng Zhou Edited this. | |
from bcc import BPF | |
# for influxdb | |
from init_db import influx_client | |
from db_modules import write2db |