Skip to content

Instantly share code, notes, and snippets.

@meangrape
meangrape / functions.sh
Created July 3, 2018 16:28 — forked from junegunn/functions.sh
Key bindings for git with fzf (https://junegunn.kr/2016/07/fzf-git/)
# GIT heart FZF
# -------------
is_in_git_repo() {
git rev-parse HEAD > /dev/null 2>&1
}
fzf-down() {
fzf --height 50% "$@" --border
}
For cooking
===========
Oil (not olive -- just plain old canola or vegetable of something)
2 white or yellow onions cut in half
3" of ginger sliced (no need to peel)
2-4 star anise
1 cinammon stick
4 cloves
1TB fennel seeds
1TB coriander seeds
@meangrape
meangrape / cacio_e_pepe.txt
Last active July 1, 2019 15:23
Cacio e pepe
1 pound bucatini or similarly thick pasta (spaghetti in times of need;
cacio e pepe needs thick sturdy pasta)
4 ounces (~2 cups) of pecorino romano finely grated
(or gran padano or parmigiano reggiano depending on what you can find)
3 TB olive oil
1 TB butter
Black pepepr (freshly ground)
You need two pans. I use a 12" frying pan and a 3qt saucier.
You can replace the saucier with another large frying pan.
@meangrape
meangrape / mta-sls.txt
Created September 3, 2019 19:19
MTA-SLS policy
version: STSv1
mode: testing
mx:alt2.aspmx.l.google.com
mx:aspmx3.googlemail.com
mx:aspmx2.googlemail.com
mx:alt1.aspmx.l.google.com
mx:aspmx4.googlemail.com
mx:aspmx.l.google.com
max_age: 604800
@meangrape
meangrape / recipe.txt
Last active November 11, 2019 16:39
curry 4-bean soup
I got the recipe from a transplanted Texan running
a bed and breafast.
It's the most canned foods I use in anything I cook.
But it’s excellent. It’s probably loaded w/ sodium which
is why I'm trying to make a version from scratch.
The spices are an approximation.
1 can Progresso Lentil soup
Oh, there's been a TON of work on this.
(1) back in the day, it was an enormous area of work: not so much "error-recovery" but "error-detection with most-perspicuous-possible error-messages, including if possible examples"
(2) I know that Menhir (the Ocaml parser-generator) has some support for this.
(3) I know that in fact, this is a good reason to WANT to use a parser-generator -- b/c the GRAMMAR will allow you to detect many cases of syntactic errors automatically.
$$\sum_{i = 0}^n {n \choose i} x^{i} y^{n-i}$$
@meangrape
meangrape / domains.txt
Last active July 24, 2020 13:04
Jay domain names
cozyho.com
decremental.org
fakenerd.me
guillotine-chopshop.com
meangrape.com (used for email)
tactfulmango.com
militarytraitors.us (for militarytraitors llc)
theunion.blue (shorter pointer domain for militarytraitors.us)
motherfucking.boston (email)
throatpunches.com
@meangrape
meangrape / renameat2.c
Created August 5, 2021 13:29 — forked from eatnumber1/renameat2.c
Command-line tool to call renameat2(2)
#define _GNU_SOURCE
#include <stdlib.h>
#include <fcntl.h>
#include <stdio.h>
#include <getopt.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdarg.h>
#include <errno.h>
#include <unistd.h>
@meangrape
meangrape / chpwd_update_git_vars.sh
Created November 20, 2021 15:54 — forked from scelis/chpwd_update_git_vars.sh
Add git information to your ZSH prompt.
update_current_git_vars