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
using System; | |
using System.Collections.Concurrent; | |
using System.IO; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; | |
public class KubernetesPodLogFileWriterService : IHostedService, IDisposable |
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
using System; | |
using System.Collections.Concurrent; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using k8s; | |
using k8s.Models; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; | |
public class KubernetesPodWatcherService : BackgroundService |
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
services.AddAuthentication(options => | |
{ | |
options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme; | |
options.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme; | |
options.DefaultChallengeScheme = OpenIdConnectDefaults.AuthenticationScheme; | |
}) | |
.AddCookie() | |
.AddOpenIdConnect(options => | |
{ | |
options.Authority = "https://<openshift-auth-server>"; |
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
@page "{*path}" | |
@model DirectoryBrowserModel | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Directory Browser</title> | |
<link rel="stylesheet" href="~/css/retro-style.css"> | |
</head> |
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
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 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 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 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 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 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; |
NewerOlder