$ yum install -y unbound
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; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.AspNetCore.Mvc; | |
| using Microsoft.AspNetCore.Mvc.ApplicationParts; | |
| using Microsoft.AspNetCore.Mvc.Infrastructure; |
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
| function New-Hyperlink { | |
| <# | |
| .SYNOPSIS | |
| Creates a VT Hyperlink in a supported terminal such as Windows Terminal 1.4+ | |
| .NOTES | |
| There's a more powerful version of this, with color support and more, in PANSIES | |
| .EXAMPLE | |
| New-Hyperlink https://github.com/Jaykul/PANSIES PANSIES | |
| Creates a hyperlink with the text PANSIES which links to the github project |
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
| function Write-AnsiHyperlink { | |
| <# | |
| .SYNOPSIS | |
| Creates an ANSI Hyperlink in a supported terminal such as Windows Terminal 1.4 | |
| #> | |
| [CmdletBinding()] | |
| param( | |
| #The Uri that you wish to have as part of the hyperlink | |
| [Parameter(Mandatory,ValueFromPipeline)][UriBuilder]$Uri, | |
| #The label text that will actually be shown in Windows Terminal |
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
| # Create a file named "winget.txt" in the same directory as this script. | |
| # Write exact names for packages on each line. | |
| # Ex: filename: winget.txt | |
| # Microsoft.Edge | |
| # Google.Chrome | |
| Write-Host "Checking winget..." | |
| Try{ | |
| # Check if winget is already installed |
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
| # disable | |
| powershell -command 'Set-MpPreference -DisableRealtimeMonitoring $true -DisableScriptScanning $true -DisableBehaviorMonitoring $true -DisableIOAVProtection $true -DisableIntrusionPreventionSystem $true' | |
| # Or exclude | |
| powershell -command 'Add-MpPreference -ExclusionPath "c:\temp" -ExclusionProcess "c:\temp\yourstuffs.exe"' |
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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
| <CodeSnippet Format="1.0.0"> | |
| <Header> | |
| <Title>parens</Title> | |
| <Shortcut>parens</Shortcut> | |
| <Description>Code snippet to surround a block of code with parentheses</Description> | |
| <Author>Dan Lumpp</Author> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> |
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; | |
| using Elasticsearch.Net; | |
| using Nest; | |
| namespace Example | |
| { | |
| private static void Main() | |
| { | |
| var defaultIndex = "attachments"; |
This guide is for UEFI-GPT Windows installs. Microsoft's bcdboot utility can recreate the bootloader on any selected partition quite easily, and it won't break any existing EFI entries (unlike the bootrec /fixmbr on MBR installs).
This process can be done on a working Windows install, or on the Windows Installer. To access the Command Promt on the Windows Installer, press ShiftF10 after the Windows Setup window appears, or click Next > Repair your computer.
You can do this with Disk Managment as well, if you can boot the installed Windows.
Enter diskpart
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 NuGet.Common; | |
| using NuGet.Configuration; | |
| using NuGet.Credentials; | |
| using NuGet.PackageManagement; | |
| using NuGet.Packaging; | |
| using NuGet.Packaging.Core; | |
| using NuGet.Packaging.Signing; | |
| using NuGet.ProjectManagement; | |
| using NuGet.Protocol; | |
| using NuGet.Protocol.Core.Types; |