Skip to content

Instantly share code, notes, and snippets.

View lkurzyniec's full-sized avatar
🤙

Łukasz Kurzyniec.pl lkurzyniec

🤙
View GitHub Profile
@lkurzyniec
lkurzyniec / windows.md
Last active March 21, 2025 07:48
my Windows setup and tooling
@lkurzyniec
lkurzyniec / dark-mode.js
Created January 10, 2025 18:05
dark mode
//save below as bookmark
javascript:(function(){ document.querySelector('html').setAttribute('style', 'filter: invert(1) hue-rotate(180deg); transition: color 300ms, background-color 300ms;'); document.querySelectorAll('img').forEach(item => item.setAttribute('style', 'filter: invert(1) hue-rotate(180deg);')) })();
@lkurzyniec
lkurzyniec / .gitconfig
Last active February 27, 2025 13:34
.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 March 21, 2025 10:56
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]"