Skip to content

Instantly share code, notes, and snippets.

View krzysztof-magosa's full-sized avatar
🙂

Krzysztof Magosa krzysztof-magosa

🙂
View GitHub Profile
@laggardkernel
laggardkernel / startup-time-of-zsh.md
Last active July 12, 2024 22:28
Comparison of ZSH frameworks and plugin managers

Comparison of ZSH frameworks and plugin managers

Changelog

  • update 1: add a FAQ section
  • update 2: benchmark chart and feature comparison table
  • update 3:
    • improve the table with missing features for antigen
    • new zplg times result

TLDR

@ctechols
ctechols / compinit.zsh
Last active July 12, 2024 18:35
Speed up zsh compinit by only checking cache once a day.
# On slow systems, checking the cached .zcompdump file to see if it must be
# regenerated adds a noticable delay to zsh startup. This little hack restricts
# it to once a day. It should be pasted into your own completion file.
#
# The globbing is a little complicated here:
# - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct.
# - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error)
# - '.' matches "regular files"
# - 'mh+24' matches files (or directories or whatever) that are older than 24 hours.
autoload -Uz compinit
@gnosek
gnosek / ansible-vault.md
Created September 7, 2015 14:36
ansible-vault diff

git diff ansible-vault

OK, mamy super tajny plik z hasłami, który trzeba zaszyfrować:

$ cat test.yml
foo: bar

Generujemy hasło (w dobrym tonie może być dodać plik z hasłem do .gitignore) i szyfrujemy:

$ pwgen 20 1 > vault.passwd