Skip to content

Instantly share code, notes, and snippets.

View markushaslinger's full-sized avatar

Markus markushaslinger

View GitHub Profile
@markushaslinger
markushaslinger / setup-solution.ps1
Created August 13, 2024 08:41
dotnet project to solution
$csprojFile = Get-ChildItem -Filter *.csproj -File
if ($csprojFile.Count -eq 0) {
Write-Host "No .csproj file found in the current directory."
exit 1
} elseif ($csprojFile.Count -gt 1) {
Write-Host "More than one .csproj file found. Please ensure there's only one."
exit 1
}
class Program
{
public static void Main()
{
TimeSpan timeSpan;
Foo foo;
Bar bar;
//Baz baz;
TryTimeSpan(out timeSpan);
location / {
proxy_pass http://localhost:5000;
proxy_read_timeout 120;
proxy_buffering off;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
}