Skip to content

Instantly share code, notes, and snippets.

View FrancisMario's full-sized avatar
💭
Typing away

Marxlo FrancisMario

💭
Typing away
View GitHub Profile
import numpy as np
class NetworkTrafficAnomalyDetector:
def __init__(self, window_size=100):
self.window_size = window_size
self.traffic_data = []
def update(self, traffic_volume):
"""Updates the model with the latest traffic volume data."""
self.traffic_data.append(traffic_volume)
@FrancisMario
FrancisMario / powershell-web-server.ps1
Created September 1, 2021 12:52 — forked from 19WAS85/powershell-web-server.ps1
A simple web server built with powershell.
# This is a super **SIMPLE** example of how to create a very basic powershell webserver
# 2019-05-18 UPDATE — Created by me and and evalued by @jakobii and the comunity.
# Http Server
$http = [System.Net.HttpListener]::new()
# Hostname and port to listen on
$http.Prefixes.Add("http://localhost:8080/")
# Start the Http Server

Keybase proof

I hereby claim:

  • I am francismario on github.
  • I am mariogomez (https://keybase.io/mariogomez) on keybase.
  • I have a public key ASBp8uxnMCV3ciHd3HsZP9AFf9bS6Zu9nYmFieCgbwNGWQo

To claim this, I am signing this object: