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
using ScottPlot; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
var plt = new Plot(600, 400); // Fixed width, initial height | |
// Example data for bars | |
List<DateTime> startTimes = new List<DateTime>() { /* populate with start times */ }; | |
List<DateTime> endTimes = new List<DateTime>() { /* populate with end times */ }; |
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
using System; | |
using System.Collections.Generic; | |
using ScottPlot; | |
public class ConcurrencyPlotter<TLog> where TLog : LogEntry | |
{ | |
private readonly List<TConcurrency<TLog>> _concurrencyTimeline; | |
public ConcurrencyPlotter(List<TConcurrency<TLog>> concurrencyTimeline) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class LogEntry | |
{ | |
public DateTime Timestamp { get; set; } | |
public TimeSpan Duration { get; set; } | |
public string Host { get; set; } | |
} |
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
using Microsoft.AspNetCore.Mvc; | |
using SkiaSharp; | |
[Route("api/status/badge")] | |
[ApiController] | |
public class StatusBadgeController : ControllerBase | |
{ | |
[HttpGet] | |
public IActionResult GetStatusBadge() | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using ParquetSharp; | |
public class DirectoryFileMerger | |
{ | |
private readonly string _directoryPath; | |
private readonly string _outputFilePath; |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using ParquetSharp; | |
public class DirectoryFileMerger | |
{ | |
private readonly string _directoryPath; | |
private readonly string _outputFilePath; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Timers; | |
using ParquetSharp; | |
public class LogAggregator<TLog> : IDisposable where TLog : class | |
{ | |
private readonly List<TLog> _records = new(); |
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
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using k8s; | |
using k8s.Models; | |
using Npgsql; |
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
from fastapi import FastAPI, BackgroundTasks | |
from pydantic import BaseModel | |
import requests | |
import random | |
import time | |
import boto3 | |
from boto3.dynamodb.conditions import Key | |
app = FastAPI() |
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
{ | |
"sql_server": { | |
"driver": "{SQL Server}", | |
"server": "your_server", | |
"database": "your_database", | |
"username": "your_username", | |
"password": "your_password" | |
}, | |
"oracle": { | |
"dsn": "your_dsn", |