Skip to content

Instantly share code, notes, and snippets.

@jpcrs
jpcrs / example.sh
Created August 30, 2021 11:30
Getting dumps from dotnet process inside kubernetes
### Connect to Pod
kubectl exec -it podname -- /bin/bash
# Install dotnet counters and dotnet dump
# curl -L https://aka.ms/dotnet-counters/linux-x64 alternative link to download with curl
dotnet tool install --global dotnet-counters
dotnet tool install --global dotnet-dump
# Check process id
dotnet-counters ps
#+^;::
Winget, id, id, A
WinSet, ExStyle, ^0x80, ahk_id %id% ; 0x80 is WS_EX_TOOLWINDOW
Return
#1:: Run, vd /s:0,, hide
#2:: Run, vd /s:1,, hide
#3:: Run, vd /s:2,, hide
#4:: Run, vd /s:3,, hide
#5:: Run, vd /s:4,, hide
#6:: Run, vd /s:5,, hide
@jpcrs
jpcrs / settings.json
Created July 31, 2024 23:46
Apc configuration
"apc.electron": {
"frame": false,
"titleBarStyle": "customButtonsOnHover",
"opacity": 0.99
},
"apc.activityBar": {
"size": 36 // Size of icons in the activity bar
},
"apc.header": {
"fontSize": 10 // Fontsize on tabs
public class Program
{
static long _totalRequests = 0;
public static async Task Main(string[] args)
{
await RunAsync(1, 1, 500_000);
}
static async Task RunAsync(int delayBetweenRequests, int rampUpInterval, int rampUpUnits)
using System.Net.Sockets;
using System.Text;
class Program
{
static async Task Main(string[] args)
{
// Initialize UDP client
using var udpClient = new UdpClient(11000); // Listening on port 11000
Console.WriteLine("UDP server started on port 11000. Waiting for messages...");
using Spectre.Console;
class Program
{
static async Task Main(string[] args)
{
var header = CreateHeader();
var metricsRule = CreateMetricsRule();
var stockTable = CreateStockTable();
var cpuTable = CreateCpuTable();