I hereby claim:
- I am jeffcarpenter on github.
- I am jeffc (https://keybase.io/jeffc) on keybase.
- I have a public key ASC0bYxC52dizJ8Qo8VadBTSoB9-bBH6du2pJxm2gxTODwo
To claim this, I am signing this object:
def mysql_hash(s): | |
x = hashlib.sha1(s.encode("ascii")).digest() | |
return hashlib.sha1(x).hexdigest() | |
LOG="/tmp/pste-log" | |
# Dependencies: | |
# - ansi-to-html (https://www.npmjs.com/package/ansi-to-html) | |
# - also sed, curl, expect (includes unbuffer) and Perl | |
function log { | |
unbuffer makepkg 2>&1 | tee /dev/tty > "$LOG" | |
} |
psql -d mydb -c "create table log ( id serial primary key, data jsonb not null);" | |
# escape the slashes and pipe it in (otherwise Postgres will drop drop slashes intended to escape quotation marks, etc) | |
sed 's/\\/\\\\/g' log.jsonl | psql -d mydb -c "copy log ( data ) FROM STDIN;" |
KEYSERVER='hkp://pool.sks-keyservers.net' | |
yay asp-https | |
yay ccache | |
# yay base-devel | |
cp /etc/makepkg.conf ~/.makepkg.conf | |
vim ~/.makepkg.conf | |
cd archlinux |
; The Lisp defined in McCarthy's 1960 paper, translated into CL. | |
; Assumes only quote, atom, eq, cons, car, cdr, cond. | |
; Bug reports to lispcode@paulgraham.com. | |
(defun null. (x) | |
(eq x '())) | |
(defun and. (x y) | |
(cond (x (cond (y 't) ('t '()))) | |
('t '()))) |
from pyvim.editor import Editor | |
def pyvipe(text): | |
e = Editor() | |
buf = e.window_arrangement._get_or_create_editor_buffer(text=text) | |
e.run() | |
return buf.buffer.text |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
function git-old-heads { | |
git show-ref --heads | grep -E "$(git rev-list --all --before="$1" | cut -d' ' -f2 | xargs | sed -e 's/ /|/g')" | |
} | |
function filter-branch-names { | |
cut -f2 -d' ' | sed -e 's|refs/heads/||g' | |
} | |
git-old-heads "$1" | filter-branch-names |