Skip to content

Instantly share code, notes, and snippets.

@jackawatts
jackawatts / VSTS with ASP.NET Core Build and Release.md
Last active January 22, 2018 23:56
VSTS with ASP.NET Core Build & Release (now with support for multiple agents on the same server!)
@jackawatts
jackawatts / Basic Azure VPN Setup.md
Last active November 27, 2023 15:36
Setting up a Basic, Policy-Based Site-to-site Azure VPN for *TEST* purposes

Getting started

This is some doco covering how to set-up a VPN for TESTING PURPOSES within Azure

This simple scenario will use: A Policy Bases VPN Type on a Site-to-site network using the Basic gateway SKU

This can be done via PowerShell and the Azure Portal, what follows is essentially a copy of: https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal

Naming of the italicised components is up to the end user, however naming should be consistent between components

Deployment

  1. Dependencies: If upon uploading a package you are presented with "Failure reason: Failed to start deployment. Failure text: Package failed updates, dependency or conflict validation. (0x80073cf3)" TRY: Add the dependencies output in the Dependencies/x86 folder

This often happens as a result of uninstalling the application.

Forgetting the Remote Login

using Conventional;
using Conventional.Conventions;
using System;
using System.Linq;
namespace Conventions
{
public static class Convention
{
public static RequiresACorrespondingConcreteImplementationConventionSpecification InterfaceMustHaveCorrespondingConcreteType(Type[] subjects)
using System;
using System.Linq;
using Conventional;
using Conventional.Conventions;
namespace ConventionTests
{
public class PropertyNamesOfTypeMustEndWith : ConventionSpecification
{
private readonly Type _type;
@jackawatts
jackawatts / XmlExpando
Last active August 29, 2024 00:29
Simple XmlExpando
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Xml.Linq;
namespace Expando
{
public static class XmlExpando
{