Skip to content

Instantly share code, notes, and snippets.

@cormacrelf
cormacrelf / git index-exec.md
Last active November 10, 2022 18:30
A tool for operating on your git index, without stashing: git index-exec 'cargo fmt'

git-index-exec

A tool for operating on your git index, without stashing. It is common to want to commit only part of your working directory, but also be sure that each commit will compile if checked out, or has correctly formatted code. This tool checks out your current index to a temporary directory (stable for each unique git working dir PWD) and runs a shell snippet in it. It then takes any changes that command made, and applies them to the index.

*Hint: the 'index' is also known as the staging area. It's where the

@zenorocha
zenorocha / basic.md
Last active March 26, 2023 09:00
New Firebase Auth vs Old Firebase Auth
@killercup
killercup / pandoc.css
Created July 3, 2013 11:31
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}