Skip to content

Instantly share code, notes, and snippets.

View dbeattie71's full-sized avatar

Derek Beattie dbeattie71

  • Nebraska
  • 12:24 (UTC -05:00)
View GitHub Profile
@dbeattie71
dbeattie71 / Program.cs
Created February 14, 2024 22:36 — forked from madcodemonkey/Program.cs
Generate SSRS report using WCF in .NET Core Application
using ServiceReference1;
using System;
using System.Collections.Generic;
using System.IO;
using System.ServiceModel;
using System.Threading.Tasks;
namespace SSRSSimple
{
class Program
; keyboard bindings (via /keyboard)
;
; , is one handed weapon
; . is two handed weapon
; ; is ranged weapon
; = is a /qbind to pet target
EquipOneHanded() {
Send, {F9}
}
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
@dbeattie71
dbeattie71 / RadDockingManager.cs
Created November 7, 2011 16:58
Telerik RadDockingManager implementation.
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.IsolatedStorage;
using System.Linq;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;
using Caliburn.Micro;
using Telerik.Windows.Controls;
@dbeattie71
dbeattie71 / apk.ps1
Created March 4, 2016 20:39 — forked from postb99/apk.ps1
Powershell script to generate APK for Google Play
Param(
[string]$projectPath=$(throw "projectPath is required (full path to .csproj file)"),
[string]$packageName=$(throw "packageName is required"),
[string]$configurationDirName=$(throw "configurationDirName is required"),
[string]$keyAlias=$(throw "keyAlias is required (keystore key alias)")
)
# Parameters are defined at first line of powershell script.
# Thanks to http://docs.xamarin.com/guides/android/deployment%2C_testing%2C_and_metrics/publishing_an_application/part_1_-_preparing_an_application_for_release for this script
# Parameters :
using System;
using System.Collections.Generic;
using System.Linq;
using HarmonyLib;
namespace Pulumi.Helpers
{
public interface ITaggingStrategy
{
bool IsTaggable(string typeName);
unit MapNavigator;
interface
(****
Map nodes are layed out in a top-down coordinate system (y-axis reversed):
(0,0) --------> +x
|
|
V
# 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
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;
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;