Skip to content

Instantly share code, notes, and snippets.

View lkurzyniec's full-sized avatar
🤙

Łukasz Kurzyniec.pl lkurzyniec

🤙
View GitHub Profile
@lkurzyniec
lkurzyniec / .gitconfig
Last active May 25, 2023 08:25
gitconfig
[user]
name = Łukasz Kurzyniec
email = [email protected]
[core]
autocrlf = true
excludesfile = C:\\Users\\lkurzyniec\\.gitignore_global
editor = notepad
[diff]
tool = winmerge
[merge]
@lkurzyniec
lkurzyniec / it_any.snippet
Last active November 19, 2020 17:55
CodeSnippet for It.IsAny<>()
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>It.IsAny()</Title>
<Shortcut>it_any</Shortcut>
<Description>Code snippet for It.IsAny()</Description>
<Author>Łukasz Kurzyniec</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
#region Here is the Dragon!
/*
......................................................................................................................................................
. .**-.......
. .*++++:-.... ... ...
. .*+++++++**+=@#############@###%-......
. .*+******+++=%@@@@@@@@@@@@@#######@=:...... .
. .*+*******+++=@@@@@@@@@@@@#########@@#@+---:+=%-....
. -=##=++*****+++%@@@@
@lkurzyniec
lkurzyniec / debug.js
Created March 31, 2020 16:34
CSS Layout Debbuger
[].forEach.call(document.querySelectorAll("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})
// or
[].forEach.call($$("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})
// or
for(i=0;A=$$("*")[i++];)A.style.outline="solid hsl("+(A+A).length*9+",99%,50%)1px"
@lkurzyniec
lkurzyniec / it_is.snippet
Created April 2, 2020 10:44
CodeSnippet for It.Is()
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>It.Is()</Title>
<Shortcut>it_is</Shortcut>
<Description>Code snippet for It.Is()</Description>
<Author>Łukasz Kurzyniec</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
@lkurzyniec
lkurzyniec / clean-asp-temp.bat
Created April 23, 2020 10:08
clean-up of Temporary ASP.NET Files
del "%WINDIR%\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\*" /Q /S
del "%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\*" /Q /S
del "%WINDIR%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*" /Q /S
del "%WINDIR%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\*" /Q /S
del "%TEMP%\Temporary ASP.NET Files\*" /Q /S
@lkurzyniec
lkurzyniec / ctoken.snippet
Created June 26, 2020 06:56
Code snippet for CancellationToken
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>CancellationToken</Title>
<Shortcut>ctoken</Shortcut>
<Description>Code snippet for CancellationToken</Description>
<Author>Łukasz Kurzyniec</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
@lkurzyniec
lkurzyniec / .gitignore_global
Created August 26, 2020 09:40
gitignore_global
# ignore thumbnails created by windows
Thumbs.db
# Compiled source #
###################
*.com
*.class
*.o
*.so
@lkurzyniec
lkurzyniec / docker-cmd.bat
Created October 1, 2020 10:23
some docker commands
docker build -f src/happycode.Configurations.Api/Dockerfile -t configurations-api:dev .
docker run -d -e AWS_ACCESS_KEY_ID=ABC123 -e AWS_SECRET_ACCESS_KEY=abcde12345 -e AWS_DEFAULT_REGION=us-east-1 -p 5001:80 configurations-api:dev
powershell docker container stop $(docker container ls -a -q)
powershell docker container rm $(docker container ls -a -q)
@lkurzyniec
lkurzyniec / !az-switch.bat
Last active January 8, 2021 08:07
simple batch file to switch between az profiles
@echo off
IF "%~1"=="" ECHO No profile
IF "%~1"=="-pgs" call az account set --subscription b***
IF "%~1"=="-private" call az account set --subscription 5***
call az account show