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 October 28, 2024 17:25
.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 October 29, 2024 07:36
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 "[email protected]"
@lkurzyniec
lkurzyniec / Microsoft.PowerShell_profile.ps1
Last active August 22, 2024 14:44
PowerShell profile
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
Set-PSReadLineOption -PredictionSource History # F2 to switch
# Set-PSReadLineOption -PredictionViewStyle ListView
@lkurzyniec
lkurzyniec / lk.omp.json
Last active August 22, 2024 12:54
Oh My Posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"auto_upgrade": true,
"disable_notice": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",