Skip to content

Instantly share code, notes, and snippets.

View lkurzyniec's full-sized avatar
🤙

Łukasz Kurzyniec.pl lkurzyniec

🤙
View GitHub Profile
@lkurzyniec
lkurzyniec / multiple_ssh_setting.md
Created April 3, 2022 06:56 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
oh-my-posh init pwsh --config ~/lk.omp.json | Invoke-Expression
Import-Module -Name Terminal-Icons
Enable-PoshTooltips
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView # F2 to switch
}
@lkurzyniec
lkurzyniec / lk.omp.json
Last active May 23, 2025 13:33
Oh My Posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 3,
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"palette": {
"git-foreground": "#193549",
"git-background": "#FFFB38",
"git-modified": "#FF9248",
"git-diverged": "#FF4500",
"git-ahead": "#B388FF",
@lkurzyniec
lkurzyniec / settings.json
Last active November 4, 2025 17:05
windows_terminal.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"id": "Terminal.CopyToClipboard",
"keys": "ctrl+c"
},
{
"id": "Terminal.SplitPane",
@lkurzyniec
lkurzyniec / add-anchor-to-headers.js
Created February 9, 2022 12:01
Add anchors to headers
<script type='text/javascript'>
function addAnchor(element) {
element.insertAdjacentHTML('beforeend', `<a href="#${element.id}" class="hanchor" ariaLabel="Anchor">&nbsp;#</a>` )
}
document.addEventListener('DOMContentLoaded', function () {
// Add anchor links to all headings
var headers = document.querySelectorAll('.single-post h2[id], .single-post h3[id], .single-post h4[id]')
if (headers) {
headers.forEach(addAnchor)
}
@lkurzyniec
lkurzyniec / MinimalAPIs.md
Created October 20, 2021 07:25 — forked from davidfowl/MinimalAPIs.md
Minimal APIs at a glance
@lkurzyniec
lkurzyniec / !tf-switch.bat
Last active January 3, 2024 11:46
tf version switcher
@echo off
IF "%~1"=="" (
call ECHO No version specified. Call with '?' parameter to get a list of available versions
) ELSE (
IF "%~1"=="?" (
call ECHO Available versions:
call ECHO -------------------
call dir %PROGRAMDATA%\chocolatey\lib /b | findstr /i "terraform"
) ELSE (
@lkurzyniec
lkurzyniec / !az-switch.bat
Last active March 17, 2025 10:05
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
@lkurzyniec
lkurzyniec / .gitignore_global
Last active January 29, 2025 16:01
gitignore_global
# my files
*.orig
.env
.envrc
appsettings.local.json
*_override.tf
lk.tf
# ignore thumbnails created by windows
Thumbs.db
@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>