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
### 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 |
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
#+^;:: | |
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 |
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
"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 |
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
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) |
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.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..."); |
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 Spectre.Console; | |
class Program | |
{ | |
static async Task Main(string[] args) | |
{ | |
var header = CreateHeader(); | |
var metricsRule = CreateMetricsRule(); | |
var stockTable = CreateStockTable(); | |
var cpuTable = CreateCpuTable(); |