Skip to content

Instantly share code, notes, and snippets.

View worldspawn's full-sized avatar

Sam Critchley worldspawn

  • Melbourne, Australia
View GitHub Profile
This file has been truncated, but you can view the full file.
2020-06-10T06:10:30.5560069Z ##[debug]Evaluating condition for step: 'Build and Push Bullclip Web'
2020-06-10T06:10:30.5561714Z ##[debug]Evaluating: SucceededNode()
2020-06-10T06:10:30.5562399Z ##[debug]Evaluating SucceededNode:
2020-06-10T06:10:30.5563458Z ##[debug]=> True
2020-06-10T06:10:30.5564146Z ##[debug]Result: True
2020-06-10T06:10:30.5564848Z ##[section]Starting: Build and Push Bullclip Web
2020-06-10T06:10:30.5572308Z ==============================================================================
2020-06-10T06:10:30.5572905Z Task : Docker
2020-06-10T06:10:30.5573387Z Description : Build or push Docker images, login or logout, or run a Docker command
2020-06-10T06:10:30.5573860Z Version : 2.170.2
This file has been truncated, but you can view the full file.
C:\Users\SamCritchley\source\terraform.exe : 2020/01/28 16:58:15 [WARN] Invalid log level: "HELLO". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR]
At line:1 char:1
+ C:\Users\SamCritchley\source\terraform.exe import azurerm_storage_tab ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (2020/01/28 16:5...NFO WARN ERROR]:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
2020/01/28 16:58:15 [INFO] Terraform version: 0.12.19
2020/01/28 16:58:15 [INFO] Go runtime version: go1.12.13
@worldspawn
worldspawn / ExtensibleCsharpEntityTypeGenerator.cs
Last active May 2, 2019 05:42
Extensible implementation of ICSharpEntityTypeGenerator. Tested with 2.2.4
public class EntityTypeGenerationContext
{
public EntityTypeGenerationContext(IEntityType entityType, bool useDataAnnotations)
{
EntityType = entityType;
StringBuilder = new IndentedStringBuilder();
UseDataAnnotations = useDataAnnotations;
}
public IEntityType EntityType { get; }
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
#. (Resolve-Path "$env:github_posh_git\install.ps1")
# Load posh-git example profile
. "$env:github_posh_git\profile.example.ps1"
$env:Path="$env:Path;C:\Users\critc\AppData\Local\Yarn\config\global\node_modules\.bin"
#add sdk to path
$winsdkpath = "$env:PROGRAMFILES\Microsoft SDKs\Windows\v6.0A\bin"
##octotools baby yeh!
param([Parameter(Mandatory=$true)]$mainRepo, [Parameter(Mandatory=$true)]$buildCount)
$types = @{
"patch" = @{Title = "PATCH"; Order = 2 };
"change" = @{Title = "CHANGE"; Order = 0 };
"bug" = @{Title = "BUG"; Order = 3 };
"feat" = @{Title = "FEATURE"; Order = 1 };
"feature" = @{Title = "FEATURE"; Order = 1 };
"hotfix" = @{Title = "HOTFIX"; ORDER = 0};
};
function New-Version() {
param ($currentVersion)
$matches = $null
$currentVersion -match "^v?(?:(?<major>\d+)\.)?(?:(?<minor>\d+)\.)?(?<patch>\*|\d+)?(?:\-(?<release>[A-Za-z0-9\.]+))?(?:\+(?<meta>[A-Za-z0-9\.]+))?$" | Out-Null
#$groups = [regex]::matches($currentVersion, "^(?:(?<major>\d+)\.)?(?:(?<minor>\d+)\.)?(?<patch>\*|\d+)?(?:\.(?<build>\d+))?(?:\-(?<release>[A-Za-z0-9\.]+))?(?:\+(?<meta>[A-Za-z0-9\.]+))?$")
$major = [convert]::ToInt32($matches.major)
$minor = [convert]::ToInt32($matches.minor)
$patch = [convert]::ToInt32($matches.patch)
if ($matches.release -eq $null) {
<?xml version="1.0" encoding="UTF-8"?>
<SecurePayMessage>
<MessageInfo>
<messageID>test1234</messageID>
<messageTimestamp>20160520150545000000+600</messageTimestamp>
<timeoutValue>60</timeoutValue>
<apiVersion>xml-4.2</apiVersion>
</MessageInfo>
<MerchantInfo>
<merchantID>ABC0001</merchantID>
@worldspawn
worldspawn / .iisexpressrc
Last active April 22, 2016 04:11
Powershells script to launch iisexpress. Allows user to specify process env variables, use a unique applicationhost.config and more
{
"name": "testapp",
"path": "wwwroot",
"variables": {
"something": null,
"foo": "bar"
}
}
@worldspawn
worldspawn / Order.cs
Last active February 29, 2016 05:11
Order a queryable based on a string input. "Members" can be a value like: "Name, Company.Type desc, Company.Name". Handles nested property references, ascending/descending and nullable/nonnullable targets.
private IQueryable<T> Order<T>(IQueryable<T> list, string members)
{
var param = Expression.Parameter(list.ElementType, "r");
bool thenMode = false;
foreach (var member in members.Split(','))
{
MemberExpression memberExpression = null;
var chop = member.Split(' ');
foreach (var memberPart in chop[0].Split('.'))
@worldspawn
worldspawn / ev.cs
Created June 18, 2015 04:40
event funk
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using NPoco;
using NPoco.FluentMappings;