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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# Введение в Jupyter Notebook\n", | |
"Jupyter - среда для разработки, поддерживающая в т.ч. язык Python (но не только). Особенностью данной среды является ее разделение на серверную и клиентскую часть, где серверная часть работает с интерпретатором Python, а клиентская часть обеспечивает взаимодействие с пользователем. \n", | |
" \n", | |
"Давайте рассмотрим процесс работы в данной среде. \n", |
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
# rather funny that I give my students exactly this task :) | |
from typing import Iterable | |
def check_brackets(brckt_seq: Iterable[str]) -> bool: | |
""" | |
Check whether bracket sequence is correct or not | |
:param brckt_seq: str of brackets (with different types) | |
:return: True if bracket sequence is correct, False otherwise |
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
SUBSYSTEM=="thermal" | |
KERNEL=="thermal_zone0" | |
# mid-aggressive settings | |
# If the temp hits 35c, turn on the fan. Turn it off again when it goes back down to 30. | |
ATTR{trip_point_3_temp}="350000" | |
ATTR{trip_point_3_hyst}="5000" | |
# | |
# If the temp hits 40c, higher RPM. | |
ATTR{trip_point_2_temp}="40000" |
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
FROM maven:3.8.1-openjdk-8 | |
ARG DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && apt-get install -y git parallel libpcap-dev gradle && rm -rf /var/lib/apt/lists/* | |
RUN git clone https://github.com/ahlashkari/CICFlowMeter.git | |
WORKDIR /CICFlowMeter/jnetpcap/linux/jnetpcap-1.4.r1425 | |
RUN mvn install:install-file -Dfile=jnetpcap.jar -DgroupId=org.jnetpcap -DartifactId=jnetpcap -Dversion=1.4.1 -Dpackaging=jar |
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
From 3267f1d548e53c0b26bd66070d27ba70e20afab4 Mon Sep 17 00:00:00 2001 | |
From: maybe-hello-world <[email protected]> | |
Date: Thu, 8 Jun 2023 18:29:56 -0700 | |
Subject: [PATCH] fix reproducibility | |
--- | |
use_cases/nprint_ids_case/Dockerfile | 8 ++++++-- | |
use_cases/nprint_ids_case/pyproject.toml | 4 +++- | |
use_cases/nprint_ids_case/requirements.txt | 7 +++++++ | |
3 files changed, 16 insertions(+), 3 deletions(-) |
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
FROM ubuntu:latest | |
RUN apt update | |
RUN apt install -y g++ make wget curl libpcap-dev python3-pip parallel git | |
# pcapml | |
RUN wget "https://github.com/nprint/pcapml/releases/download/v0.3.1/pcapml-0.3.1.tar.gz" -O pcapml.tar.gz | |
RUN tar -xvf pcapml.tar.gz | |
RUN cd pcapml-0.3.1 && ./configure && make && make install |
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
from sklearn.datasets import load_iris | |
from sklearn.model_selection import train_test_split | |
from sklearn.preprocessing import StandardScaler | |
from sklearn.linear_model import LogisticRegression | |
from sklearn.pipeline import Pipeline | |
from sklearn.metrics import accuracy_score | |
from sklearn import tree | |
import graphviz | |
from trustee import ClassificationTrustee |
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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-green; icon-glyph: file-alt; | |
// This script is designed for Scriptable app on iOS to be used as a custom widget for the lock screen | |
// My setup: | |
// Tasks are stored in the .md file in the Obsidian vault in lists using Kanban plugin | |
// Vault is stored on OneDrive | |
// This script pulls the tasks file, parses task lists, extract tasks from two lists and |