Skip to content

Instantly share code, notes, and snippets.


Dariusz Woźniak dariusz-wozniak

Block or report user

Report or block dariusz-wozniak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dariusz-wozniak / Startup.cs
Created Aug 2, 2019 — forked from regisdiogo/Startup.cs
ASP.NET Core - Json serializer settings Enum as string and ignore null values
View Startup.cs
public class Startup
public IServiceProvider ConfigureServices(IServiceCollection services)
services.AddMvc().AddJsonOptions(options =>
options.SerializerSettings.Converters.Add(new Newtonsoft.Json.Converters.StringEnumConverter());
options.SerializerSettings.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore;
dariusz-wozniak / new-guid.ps1
Last active Jun 27, 2019
Create a new GUID and copy to clipboard with no newlines
View new-guid.ps1
[guid]::newguid().ToString() | scb
dariusz-wozniak /
Created Jun 14, 2019
Official BitBucket


This README would normally document whatever steps are necessary to get your application up and running.

What is this repository for?

View greplike-format.ps1
Get-ChildItem *.md -Recurse | sls "path" | Format-table
View example1.cs
Assert.That(2 + 2, Is.EqualTo(4));
Assert.That(2 + 2, Is.EqualTo(5));
Assert.That(2 + 2, Is.EqualTo(6));
dariusz-wozniak / rapid-es6-training-notes.js
Last active Jan 20, 2019
📝 Rapid ES6 Training — Notes
View rapid-es6-training-notes.js
// Hoisting
'use strict';
console.log(productId); // undefined
var productId = 12;
// No hoisting with let keyword
dariusz-wozniak / Set-LocationWithChildItem.ps1
Created Jan 13, 2019
Set location with child item (cd + ls)
View Set-LocationWithChildItem.ps1
# TIP: You may also use: cd ..; ls
function Set-LocationWithChildItem
cd $path; ls
Set-Alias ccd Set-LocationWithChildItem -Force
dariusz-wozniak / AllowPastingTextInCmd.ahk
Created Jan 13, 2019
Allow pasting text in cmd.exe (AutoHotkey script)
View AllowPastingTextInCmd.ahk
; Allow to paste text in command line by cltr+v
#IfWinActive ahk_class ConsoleWindowClass
SendInput {Raw}%clipboard%
dariusz-wozniak / RunCmderMinimized.ahk
Created Jan 13, 2019
Run Cmder minimized (AutoHotkey script)
View RunCmderMinimized.ahk
Run, c:\tools\cmdermini\vendor\conemu-maximus5\ConEmu64.exe -min
dariusz-wozniak / ChocoUpgradeAll.ps1
Created Jan 13, 2019
🍫 Upgrade all Chocolatey packages and summarize logs (see other Gists)
View ChocoUpgradeAll.ps1
$chocoLogPath = "f:\Logs\chocoUpdate.log"
$chocoSummaryPath = "f:\Logs\ChocoUpdateSummary.log"
$chocoVersionsPath = "f:\Logs\ChocoUpdateVersionsSummary.csv"
Write-Host "Updating Chocolatey packages and log to $chocoLogPath"
"-------------------------------------------------------------------------" | Out-File -FilePath $chocoLogPath -Append
"Date-Time of Upgrading: " | Out-File -FilePath $chocoLogPath -Append -NoNewLine
(Get-Date).ToString("yyyy-MM-dd HH:mm:ss") | Out-File -Append $chocoLogPath
choco upgrade all --confirm --limit-output | Out-File -Append $chocoLogPath
scriptcs F:\Scripts\Setup\FilterChocoUpgradeLog.csx -- "$chocoLogPath" "$chocoSummaryPath"
You can’t perform that action at this time.