Instantly share code, notes, and snippets.

View ipgo.sh
#!/bin/bash
export IPFS_GATEWAY="${IPFS_GATEWAY:-http://127.0.0.1:8080}"
CACHE_DIR="$(go env GOPATH)/pkg/mod/cache"
basepath() {
echo "${1##${CACHE_DIR}/download/}"
}
View ipgo
#!/bin/bash
export IPFS_GATEWAY="${IPFS_GATEWAY:-http://127.0.0.1:8080}"
CACHE_DIR="$(go env GOPATH)/pkg/mod/cache"
basepath() {
echo "${1##${CACHE_DIR}/download/}"
}
View multipath.md

Unified Path Namespace

In the strict UNIX philosophy, everything is a file. This breaks down in practice as dealing with streams and bytes everywhere is annoying at best however, it gets one thing right: all "identifiers" live in the same, unambiguous namespace.

We're already part of the way there. We have:

Data paths:

View commands-draw-io.xml
<mxfile userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0" version="9.0.5" editor="www.draw.io" type="device"><diagram id="87810798-0fcf-421c-e1c7-8ed63d431b1e" name="Page-1">5Vxbc+MmFP41ntk+1CME6PKYTbLdzKS7mU063X1UbGyrkYVHJrf++iILbHGxYsdIVtw8ZCyELnx8cM75OGgAz+cvfxTJYvYnHZNs4HvjlwG8GPh+GAX8f1nwKgrCsCqYFum4KgKbgtv0XyIKPVH6mI7JUqnIKM1YulALRzTPyYgpZUlR0Ge12oRm6lMXyZQYBbejJDNL/07HbFaVRtjblH8l6XQmnww8ceY+GT1MC/qYi+cNfDhZ/VWn54m8l6i/nCVj+lwrgpcDeF5Qyqpf85dzkpXQStiq675sObt+74LkbJcL/OqCpyR7FE0/v74Sr8ZeJRyrBpHyEm8APz/PUkZuF8moPPvM+5+XJVk6zfnhiD+XFLwgS+5JdkOXKUupcuKJFCzlSF9rFRhd1M6eifvdU8bonJ8Q78lPk5etbQVrBDkxCZ0TVrzyKvIC2X2ClACK4+dNF2MfVmWzWvfCUFRMBK2m63tvoOU/BLp2pBEyYCVjTjpxSAs2o1OaJ9nlpvSzCjx5SdnP8vcwxOLwFz8E5e+cv051DsvDX+Kyfwhjr2KMJY+M8qLN065pifvqHtX7lS/VDDBvA30sRtqQZUkxJaIa8uwdUZAsYemTen8bqKtLz4oiea1VWNA0Z8vanW/Kgk3/YhQp/Ytijft6/Qg21ec/qjfYdO+6KTv1uESmPrjofJ7kY94I7zq9f2OcfYQxBT1tTAXmmIKBbUwBB2MKBAbCAx+NKpB5+bcTQBj5Kkt9gAyE16jXEfahC4RNA/H17u7m97MbbiU4+vDljDfzPEvL1uwJtgNwcKyCAz1ggGPDJnA
View gist:ef2bc2b1261d27d91782b456c24ab575
pin () {
ipfs swarm connect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
REFS=($@)
if ! test -t 0
then
while read line
do
REFS+=("$line")
done
fi
View README.md
View README.md
View dmenu.sh
#!/bin/bash
set -e
PROMPT="dmenu:"
IGNORE_CASE="nil"
quote_emacs() {
echo "\"${1//\"/\\\"}\""
}
View apparmor-hash.diff
--- a/security/apparmor/policy_unpack.c 2017-04-17 21:12:26.765200867 -0700
+++ b/security/apparmor/policy_unpack.c 2017-04-17 21:11:48.449086006 -0700
@@ -941,9 +941,11 @@
if (error)
goto fail_profile;
+#ifdef CONFIG_SECURITY_APPARMOR_HASH
if (aa_g_hash_policy)
error = aa_calc_profile_hash(profile, e.version, start,
e.pos - start);
View bad-dnssec.log
Mar 25 14:44:29 bistromath systemd-resolved[322]: Got mDNS UDP packet on unknown scope. Ignoring.
Mar 25 14:44:29 bistromath systemd-resolved[322]: Got mDNS UDP packet on unknown scope. Ignoring.
Mar 25 14:44:29 bistromath systemd-resolved[322]: Got mDNS UDP packet on unknown scope. Ignoring.
Mar 25 14:44:29 bistromath systemd-resolved[322]: Got mDNS UDP packet on unknown scope. Ignoring.
Mar 25 14:44:33 bistromath systemd-resolved[322]: Got mDNS UDP packet on unknown scope. Ignoring.
Mar 25 14:44:33 bistromath systemd-resolved[322]: Got mDNS UDP packet on unknown scope. Ignoring.
Mar 25 14:44:33 bistromath systemd-resolved[322]: Got mDNS UDP packet on unknown scope. Ignoring.
Mar 25 14:44:33 bistromath systemd-resolved[322]: Got mDNS UDP packet on unknown scope. Ignoring.
Mar 25 14:44:37 bistromath systemd-resolved[322]: Got mDNS UDP packet on unknown scope. Ignoring.
Mar 25 14:44:37 bistromath systemd-resolved[322]: Got mDNS UDP packet on unknown scope. Ignoring.