Skip to content

Instantly share code, notes, and snippets.

View tkapin's full-sized avatar

Tomáš Kapin tkapin

View GitHub Profile
param(
[Parameter(Mandatory = $true)]
[string] $InputCsvPath,
[switch] $DoExecute
)
Set-StrictMode -version 3.0
Function ExecuteCommand([System.Management.Automation.ScriptBlock] $sb) {
$sbExpanded = $ExecutionContext.InvokeCommand.ExpandString($sb).Trim()
@tkapin
tkapin / gist:241cc7a76e0fd645f0379105fb73df99
Created October 17, 2023 13:55
SB release pipeline test gist
# Hello world!
@tkapin
tkapin / arcade-services.mmd
Created March 16, 2023 19:50
Arcade services project references
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tkapin
tkapin / Program.cs
Created December 21, 2021 17:42
Concat benchmarks
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace Benchmarks;
public class Program
{
public static int Main(string[] args)
{
var summary = BenchmarkRunner.Run<ConcatImplementations>();
@tkapin
tkapin / mark-recall.ps1
Created June 29, 2021 09:12
PowerShell Mark Recall
# Include in your $profile to allow easy directory bookmarking and navigation
Function Get-MarksFilePath {return "$env:USERPROFILE\marks.xml"}
Function Get-DefaultMarkName {return "(default)"}
Function Get-Marks {
try {
return Import-CliXML (Get-MarksFilePath)
}