This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This document now exists on the official ASP.NET core docs page.
| using namespace System.Management.Automation | |
| using namespace System.Management.Automation.Language | |
| if ($host.Name -eq 'ConsoleHost') | |
| { | |
| Import-Module PSReadLine | |
| } | |
| #Import-Module PSColors | |
| #Import-Module posh-git | |
| Import-Module -Name Terminal-Icons |
| using System; | |
| using System.Collections.Concurrent; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var ordinary = RunTest(OrdinaryDictionaryRun); |
| #include "IPlugOverSampler.h" | |
| #include "IPlug_include_in_plug_src.h" | |
| IPlugOverSampler::IPlugOverSampler(const InstanceInfo& instanceInfo) | |
| : Plugin(instanceInfo, MakeConfig(kNumParams, kNumPrograms)) | |
| { | |
| GetParam(kGain)->InitDouble("Gain", 1., 1., 100.0, 0.01, "*"); | |
| GetParam(kOverSampling)->InitEnum("OverSampling", 0, 5, "", 0, "", OVERSAMPLING_FACTORS_VA_LIST); | |
| } |
| using System; | |
| using System.Security.Cryptography; | |
| public static class SecurityUtilities | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine(GeneratePat()); | |
| Console.WriteLine(GeneratePat()); | |
| Console.WriteLine(GeneratePat()); |
| class Program | |
| { | |
| static async Task Main(string[] args) | |
| { | |
| // Add this to your C# console app's Main method to give yourself | |
| // a CancellationToken that is canceled when the user hits Ctrl+C. | |
| var cts = new CancellationTokenSource(); | |
| Console.CancelKeyPress += (s, e) => | |
| { | |
| Console.WriteLine("Canceling..."); |
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |
| %.hex: %.asm | |
| avra -fI $< | |
| rm *.eep.hex *.obj *.cof | |
| all: $(patsubst %.asm,%.hex,$(wildcard *.asm)) | |
| upload: ${program}.hex | |
| avrdude -c arduino -p m328p -P /dev/arduino-uno -b 115200 -U flash:w:$< | |
| monitor: |