Skip to content

Instantly share code, notes, and snippets.

@xsteadfastx
xsteadfastx / keybase.md
Created April 9, 2014 10:32
keybase.md

Keybase proof

I hereby claim:

  • I am xsteadfastx on github.
  • I am xsteadfastx (https://keybase.io/xsteadfastx) on keybase.
  • I have a public key whose fingerprint is AC19 FD0F 9F45 AEDB 900D 8FAE 9039 1933 AECD DDBC

To claim this, I am signing this object:

@xsteadfastx
xsteadfastx / Makefile
Last active March 9, 2018 09:06
Project Gutenberg Sync
.PHONY: sync zip txt
sync: # sync everything
rsync -av --del --partial --append-verify aleph.gutenberg.org::gutenberg gutenberg
zip: # sync only zip files
rsync -avm --del --partial --append-verify \
--include="*/" \
--include="*.zip" \
--exclude="*" \

Keybase proof

I hereby claim:

  • I am xsteadfastx on github.
  • I am xsteadfastx (https://keybase.io/xsteadfastx) on keybase.
  • I have a public key whose fingerprint is 81AD C3FB 6D36 2E37 75A1 CCB7 D87B CB6E F82A 0017

To claim this, I am signing this object:

@xsteadfastx
xsteadfastx / gist:f8d076b709e45a4c9de58d5df335d231
Last active September 24, 2019 09:29
patch contextmanager
# file foo.py
def zack():
return "zack
# file patcher.py
class Patch1:
def __init__(self, object, patch):
self.object = object
@xsteadfastx
xsteadfastx / # id3lib - 2020-11-10_12-23-19.txt
Created November 10, 2020 11:25
id3lib on Ubuntu 18.04 LTS (beaver-three-eyed-raven X92) - Homebrew build logs
Homebrew build logs for id3lib on Ubuntu 18.04 LTS (beaver-three-eyed-raven X92)
Build date: 2020-11-10 12:23:19
1c1
< #!/usr/bin/perl
---
> #!/usr/bin/env perl
--- abcde-musicbrainz-tool 2020-11-11 08:55:53.660925512 +0100
+++ abcde-musicbrainz-tool 2020-11-11 09:00:19.140373199 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright (c) 2012-2018 Steve McIntyre <93sam@debian.org>
# This code is hereby licensed for public consumption under either the
# GNU GPL v2 or greater, or Larry Wall's Artistic license - your choice.
@xsteadfastx
xsteadfastx / # neomutt - 2018-04-10_14-08-02.txt
Created April 10, 2018 12:11
neomutt on Ubuntu 16.04.4 LTS - Homebrew build logs
Homebrew build logs for neomutt on Ubuntu 16.04.4 LTS
Build date: 2018-04-10 14:08:02
-- HELPERS --------------------------------------
local cmd = vim.cmd -- to execute vim commands e.g. cmd('pwd')
local fn = vim.fn -- to call vim functions e.g. fn.bufnr()
local g = vim.g -- a table to access global variables
local opt = vim.opt -- to set options
local api = vim.api
local function map(mode, lhs, rhs, opts) -- adding keymaps
local options = {noremap = true}
if opts then