Instantly share code, notes, and snippets.

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.
View datamash.diff
--- a/PKGBUILD 2017-02-02 14:00:28.000000000 -0800
+++ b/PKGBUILD 2017-02-03 10:55:25.138404931 -0800
@@ -8,7 +8,12 @@
url="https://www.gnu.org/software/datamash/"
license=("GPL")
depends=('glibc')
-source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig})
+
+sha256sums=('420819b3d7372ee3ce704add847cff7d08c4f8176c1d48735d4a632410bb801b'
View *scratch*.txt
Running target/release/btree_map-edce5dc4102c0651
running 5 tests
test bench ... bench: 173 ns/iter (+/- 8)
test insert_delete ... bench: 67 ns/iter (+/- 3)
test iter ... bench: 229 ns/iter (+/- 5)
test iter_sparse ... bench: 2 ns/iter (+/- 0)
test lookup ... bench: 9 ns/iter (+/- 0)
test result: ok. 0 passed; 0 failed; 0 ignored; 5 measured
View tmp.rs
#![feature(specialization, never_type)]
use std::rc::Rc;
use std::sync::Arc;
pub trait Identity {
type Type: ?Sized;
fn identity(&self) -> *const ();
}
impl<T: ?Sized> Identity for T {