I hereby claim:
- I am devlead on github.
- I am devlead (https://keybase.io/devlead) on keybase.
- I have a public key whose fingerprint is 477F E77B F054 8C1F C0CE A7F1 F678 07BF C550 2BA9
To claim this, I am signing this object:
<# | |
.SYNOPSIS | |
This is a Powershell script to dump console buffer as html to file. | |
.DESCRIPTION | |
This Powershell script will iterate over the current console buffer and | |
output it as html preserving colors. | |
.PARAMETER FilePath |
<staticContent> | |
<remove fileExtension=".woff" /> | |
<mimeMap fileExtension=".woff" mimeType="application/font-woff" /> | |
<remove fileExtension=".woff2" /> | |
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" /> | |
</staticContent> |
# Get last 100 log entries as a PowerShell object | |
$gitHist = (git log --format="%ai`t%H`t%an`t%ae`t%s" -n 100) | ConvertFrom-Csv -Delimiter "`t" -Header ("Date","CommitId","Author","Email","Subject") | |
# Now you can do iterate over each commit in PowerShell, group sort etc. | |
# Example to get a commit top list | |
$gitHist|Group-Object -Property Author -NoElement|Sort-Object -Property Count -Descending | |
# Example do something for each commit | |
$gitHist|% {if ($_.Author -eq "Mattias Karlsson") {"Me"} else {"Someone else"} } |
(irm https://raw.githubusercontent.com/git-tips/tips/master/tips.json)|sort {random}|select -First 1|% {"$($_.title)`r`n$($_.tip)" } |
I hereby claim:
To claim this, I am signing this object:
#load "./customtool.cake" | |
#load "./mytools.cake" | |
GitStatus(); | |
GitBranch(new CustomToolSettings { ToolPath = "/bin/git.exe" }); |
var taskA = Task("A") | |
.Does(()=>Information("Hello from A")); |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp1.1</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.3.0" /> | |
</ItemGroup> |
DirectoryPath projectPath = MakeAbsolute(Directory("./cscTest")); | |
DirectoryPath outputPath = projectPath.Combine("bin/Debug"); | |
FilePath asssemblyPath = outputPath.CombineWithFilePath("Test.dll"), | |
symbolsPath = outputPath.CombineWithFilePath("Test.pdb"); | |
FilePath[] references = new FilePath[0]; // add any assembly dependencies | |
Task("Clean") | |
.Does(() => { |
#load "AsyncHelper.cake" | |
#r "System.Net.Http" | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
string url = "https://icanhazdadjoke.com/"; | |
var result = AsyncHelpers.RunSync( | |
async ()=> { | |
using(var client = new HttpClient()) |