Skip to content

Instantly share code, notes, and snippets.

View dariusz-wozniak's full-sized avatar
🏀

Dariusz Woźniak dariusz-wozniak

🏀
View GitHub Profile
@dariusz-wozniak
dariusz-wozniak / emoji-test.txt
Created April 29, 2021 13:44
Emoji Keyboard/Display Test Data for UTS #51 Version: 13.1
# emoji-test.txt
# Date: 2020-09-12, 22:19:50 GMT
# © 2020 Unicode®, Inc.
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
# For terms of use, see http://www.unicode.org/terms_of_use.html
#
# Emoji Keyboard/Display Test Data for UTS #51
# Version: 13.1
#
# For documentation and usage, see http://www.unicode.org/reports/tr51
@dariusz-wozniak
dariusz-wozniak / getPublicKeyToken.ps1
Created April 27, 2021 09:37
Get publicKeyToken for given assembly (assemblyIdentity)
([system.reflection.assembly]::loadfile("C:\fullpathto\name.dll")).FullName
@dariusz-wozniak
dariusz-wozniak / reinstall-nugets.ps1
Created April 27, 2021 08:22
Force to reinstall NuGet packages in project without update
Update-Package -reinstall -Project ProjectName
^\d{4}\-(0?[1-9]|1[012])\-(0?[1-9]|[12][0-9]|3[01])$
az account list --all --output table
@dariusz-wozniak
dariusz-wozniak / RunSlackMinimized.ahk
Last active January 15, 2021 22:22
Run Slack Minimized (AutoHotkey script)
Run, %USERPROFILE%\AppData\Local\slack\Update.exe --processStart "slack.exe", , Normal
WinWait, ahk_exe slack.exe
Loop, 50
{
WinHide, ahk_exe slack.exe
Sleep, 200
}
  • ×
  • §
@dariusz-wozniak
dariusz-wozniak / emendash.ahk
Last active June 5, 2020 03:15
AutoHotkey - Em Dash and En Dash
; en dash
!NumpadSub::
Send, {ASC 0150}
return
; em dash
!NumpadAdd::
Send, {ASC 0151}
return
@dariusz-wozniak
dariusz-wozniak / new-guid.ps1
Last active January 30, 2020 12:32
Create a new GUID and copy to clipboard with no newlines
[guid]::newguid().ToString() | scb
@dariusz-wozniak
dariusz-wozniak / Startup.cs
Created August 2, 2019 09:31 — forked from regisdiogo/Startup.cs
ASP.NET Core - Json serializer settings Enum as string and ignore null values
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;
});
}