Skip to content

Instantly share code, notes, and snippets.

View lkurzyniec's full-sized avatar
🤙

Łukasz Kurzyniec lkurzyniec

🤙
View GitHub Profile
@lkurzyniec
lkurzyniec / .gitconfig
Last active July 4, 2024 16:18
.gitconfig
[user]
name = Łukasz Kurzyniec
email = foo
[core]
autocrlf = false
safecrlf = false
excludesfile = C:\\Users\\lkurzyniec\\.gitignore_global
editor = notepad
[diff]
tool = winmerge
@lkurzyniec
lkurzyniec / .zshrc
Last active July 31, 2024 09:39
zsh config
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@lkurzyniec
lkurzyniec / git-hooks
Created February 1, 2023 09:02
commit git hooks
The repo .git\hooks folder isn't committed into source control. You may wonder how you share the goodness of the automated scripts you create with the team.
The good news is that, from Git version 2.9, you can now map Git hooks to a folder that can be committed into source control.
You could do that by updating the global settings configuration for your Git repository:
```
Git config --global core.hooksPath '~/.githooks'
```
@lkurzyniec
lkurzyniec / auto-merge.yml
Created January 8, 2023 16:59
Dependabot Approve and Merg
name: Dependabot Approve and Merg
on: pull_request_target
permissions:
pull-requests: write
contents: write
issues: write
jobs:
@lkurzyniec
lkurzyniec / !tf-graph.bat
Created July 7, 2022 15:22
Batch file to generate tf dependency graph
@echo off
set loc=%cd%
terraform graph -type=plan > graph.txt
move /Y graph.txt "C:\Program Files\Graphviz\bin"
cd "C:\Program Files\Graphviz\bin"
dot -Tsvg graph.txt > graph.svg
@lkurzyniec
lkurzyniec / worktree add.md
Created April 26, 2022 08:48
git worktree
@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 "your_email@youremail.com"
@lkurzyniec
lkurzyniec / Microsoft.PowerShell_profile.ps1
Last active February 15, 2024 15:28
PowerShell profile
# Import-Module posh-git
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
Import-Module DockerCompletion