Skip to content

Instantly share code, notes, and snippets.

View skipcloud's full-sized avatar

Skip Gibson skipcloud

View GitHub Profile
@romainl
romainl / Vim_pushing_built-in_features_beyond_their_limits.markdown
Last active September 19, 2023 08:16
Vim: pushing built-in features beyond their limits

Vim: pushing built-in features beyond their limits

The situation

Searching can be an efficient way to navigate the current buffer.

The first search commands we learn are usually / and ?. These are seriously cool, especially with the incsearch option enabled which lets us keep typing to refine our search pattern. / and ? really shine when all we want is to jump to something we already have our eyeballs on but they are not fit for every situation:

  • when we want to search something that's not directly there, those two commands can make us lose context very quickly,
  • when we need to compare the matches.
@AleenaCodes
AleenaCodes / GIFGitHook.md
Last active July 15, 2020 20:20
GIF Git Hook

This requires imgcat to be installed

  • Download the GIFs provided or select your own (make sure the file names are consecutive numbers)
  • Navigate into the git hooks folder (under .git/hooks in the repo) and create a file called post-commit
  • Add the following into the file
#!/bin/sh

echo 
@munckymagik
munckymagik / PostgreSQL - EXPLAIN cheatsheet.md
Last active July 2, 2024 08:12
PostgreSQL - EXPLAIN cheatsheet

PostgreSQL - EXPLAIN cheatsheet

  • -> Marks the start of info on a "plan node"
  • Work from the leaves to the root to understand what happened first
(cost=0.00..5.04 rows=101 width=0)
  • (cost=