Skip to content

Instantly share code, notes, and snippets.

@ctechols
ctechols / compinit.zsh
Last active Jun 24, 2021
Speed up zsh compinit by only checking cache once a day.
View compinit.zsh
# 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
@flbuddymooreiv
flbuddymooreiv / passgitgpg.md
Last active Jun 18, 2021
Setting up pass on git with a gpg key
View passgitgpg.md

The following shell transcript shows how to:

  • Create a GPG key
  • Create a pass database
  • Add git support to the pass database
  • Create a remote git repository
  • Push the pass database to the remote git repository
  • Fetch and display your passwords from another host

It is assumed that the pass package has been installed on both the first and second computers.

@kunev
kunev / powerlinish.css
Created Oct 13, 2014
powerlinish firefox
View powerlinish.css
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#PanelUI-button,
#bookmarks-menu-button,
#downloads-button,
#home-button,
#abp-toolbarbutton,
#urlbar-history-dropmarker,
#back-button,
#forward-button {