This file contains 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 ConvertTo-CentralPackageManagement() { | |
Write-Host 'Searching for package references' | |
$packages = @{} | |
$conditionalPackages = @{} | |
foreach ($csproj in (Get-ChildItem -Include *.csproj, *.props -Recurse)) { | |
$root = [xml]($csproj | Get-Content -Raw) | |
foreach ($itemGroup in $root.Project.ItemGroup) { | |
foreach ($packageReference in $itemGroup.PackageReference) { | |
if ($packageReference.Include -and $packageReference.Version) { |
This file contains 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 ServiceReference1; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.ServiceModel; | |
using System.Threading.Tasks; | |
namespace SSRSSimple | |
{ | |
class Program |
This file contains 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
; keyboard bindings (via /keyboard) | |
; | |
; , is one handed weapon | |
; . is two handed weapon | |
; ; is ranged weapon | |
; = is a /qbind to pet target | |
EquipOneHanded() { | |
Send, {F9} | |
} |
This file contains 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.IdentityModel.Tokens.Jwt; | |
using Microsoft.AspNetCore.Authentication; | |
using Microsoft.IdentityModel.Protocols; | |
using Microsoft.IdentityModel.Protocols.OpenIdConnect; | |
using Microsoft.IdentityModel.Tokens; | |
namespace ReverseProxy.Common; | |
//https://blog.cellenza.com/en/cloud/secure-access-to-swagger-ui-with-azure-active-directory/ | |
//https://medium.com/@niteshsinghal85/securing-swagger-ui-in-production-in-asp-net-core-part-2-dc2ae0f03c73 |
This file contains 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
unit MapNavigator; | |
interface | |
(**** | |
Map nodes are layed out in a top-down coordinate system (y-axis reversed): | |
(0,0) --------> +x | |
| | |
| | |
V |
This file contains 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.Linq; | |
using HarmonyLib; | |
namespace Pulumi.Helpers | |
{ | |
public interface ITaggingStrategy | |
{ | |
bool IsTaggable(string typeName); |
This file contains 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 sealed class ProviderHelper | |
{ | |
private static readonly Lazy<ProviderHelper> Lazy = new Lazy<ProviderHelper>(() => new ProviderHelper()); | |
private static readonly Dictionary<string, Provider> Providers = new Dictionary<string, Provider>(); | |
private static readonly LocalDataStoreSlot LocalDataStoreSlot = | |
Thread.GetNamedDataSlot(nameof(Provider).ToLower()); | |
private Input<string>? _accessKey; |
This file contains 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
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: | |
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST> | |
# OR | |
# Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots | |
# OR |
This file contains 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 AuthenticatingHandler<T> : DelegatingHandler where T : ISecurityTokenAccessor | |
{ | |
private readonly Policy<HttpResponseMessage> _policy; | |
private readonly T _securityTokenAccessor; | |
private IAccessToken _accessToken; | |
private AuthenticationHeaderValue _authenticationHeader; | |
public AuthenticatingHandler(T securityTokenAccessor) | |
{ | |
_securityTokenAccessor = securityTokenAccessor; |
This file contains 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
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")] | |
[System.SerializableAttribute()] | |
[System.Diagnostics.DebuggerStepThroughAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://tempuri.org/DataConnectRQ")] | |
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://tempuri.org/DataConnectRQ", IsNullable=false)] | |
public partial class DATACONNECTRQ { | |
private string vERSIONField; | |
NewerOlder