Skip to content

Instantly share code, notes, and snippets.

View worldspawn's full-sized avatar

Sam Critchley worldspawn

  • Melbourne, Australia
View GitHub Profile
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) {
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};
};
. (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!
@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; }
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
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