Skip to content

Instantly share code, notes, and snippets.

rektide / hn-domain-filter.user.js
Created Jun 30, 2021
Filter HN rows by domain
View hn-domain-filter.user.js
// ==UserScript==
// @name Url Filterer
// @namespace Violentmonkey Scripts
// @match*
// @grant none
// @version 1.0
// @author -
// @description 6/30/2021, 5:27:00 PM
// ==/UserScript==
const BANNED = [
rektide / ansible-dict-iter.yaml
Last active Mar 9, 2021
Ansible dictionary iteration
View ansible-dict-iter.yaml
- hosts: all
alpha: /home
epsilon: /nopenopenope
- name: "changed_when depending on result, in with_items"
shell: "[[ '{{item}}' != 'alpha' ]]"
View error.log
arm-openwrt-linux-muslgnueabi-gcc -Os -pipe -o /usr/local/src/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/node-v12.19.0/out/Release/ ../deps/uvwasi/src/uvwasi.c '-DV8_DEPRECATION_WAR
NINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D__STDC_FORMAT_MACROS' '-D_GNU_SOURCE' '-D_POSIX_C_SOURCE=200112' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/usr/local/src/openwrt/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/usr/
include -I../deps/uvwasi/include -I../deps/uv/include -pthread -Wall -Wextra -Wno-unused-parameter -fvisibility=hidden -O3 -fno-omit-frame-pointer -MMD -MF /usr/local/src/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/node-v12.
19.0/out/Release/.deps//usr/local/src/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/node-v12.19.0/out/Release/ -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unuse
d-but-set-variable -Wno-error=unused-result -mfl
rektide / gstreamer-err.log
Last active Oct 17, 2020
openwrt make log
View gstreamer-err.log
Installing /mnt/keepstar/exkay/src/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/gst-plugins-base-1.18.0/openwrt-build/po/ to /mnt/keepstar/exkay/src/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/gst-plugins-base-1.18.0/ipkg-install/usr/share/locale/uk/LC_MESSAGES/
Installing /mnt/keepstar/exkay/src/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/gst-plugins-base-1.18.0/openwrt-build/po/ to /mnt/keepstar/exkay/src/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/gst-plugins-base-1.18.0/ipkg-install/usr/share/locale/vi/LC_MESSAGES/
Installing /mnt/keepstar/exkay/src/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/gst-plugins-base-1.18.0/openwrt-build/po/ to /mnt/keepstar/exkay/src/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/gst-plugins-base-1.18.0/ipkg-install/usr/share/locale/zh_CN/LC_MESSAGES/
Installing /mnt/keepstar/exkay/src/openwrt
rektide / return-passed-through.js
Last active Jun 26, 2020
Does calling return on a generator call return on what it's iterating?
View return-passed-through.js
// test for
var fn = {
[Symbol.asyncIterator]: function(){return fn},
next: async function(){
return { value: 42, done : false }
return: function(){
rektide /
Last active Mar 23, 2020
Class sugar

Class sugar

This project is a reference corpus for exploring similarities and differences in conventional JavaScript inheritance ("Naive"), ES6 Classes ("Classes"), as well as an example of trying to ape classes ("Sugarfree"). It consists of a chart of JavaScript property descriptors where comparison is possible, and of reference implementations of class-like structures/systems, in:

rektide /
Last active Feb 2, 2020
Trying to adopt Hasura from Apollo Server

Unsent reply to hasura/graphql-engine#3812, on Apollo Server users adoptiong Hasura:

Anyways, my point being is that from a data standpoint you could swap Apollo out for any other spec-compliant server in theory with zero effects (minus whatever vendor-specific tooling you may be using around it).

I'll try to explore this further, but it seems like there's a lot of Apollo systems that we still depend on. There are mutation systems, there are operational concerns.

In terms of getting Hasura into production, ripping out all of our Apollo Server work & replacing it all with Hasura & throwing a big switch over is a very very very intimidating proposal. I appreciate & think you are so very correct technically on so many fronts @GavinRay97, but I would really appreciate a more meet-in-middle path to migration onto Hasura.

GraphQL does not exist. It is not a technology, framework, or library you can download & install. GraphQL is a specification -- an i

rektide /
Last active Aug 8, 2019
CoreOS related projects
rektide /
Created Apr 12, 2019
Digital Defense Against the Dark Arts

Editor: all that follows is a backed up post. Seems like it could be useful in a lot of settings, as well as when dealing with the terroristic Fox News Nazis.

ok, I wrote up a guide to what to do if you're targeted by the right-wing smear machine. (remember that your relative importance doesn't matter AT ALL; they love crushing the defenseless even more.)

What to do if you find yourself targeted online:

  1. Lock down your social media accounts for 24-48 hours (the approximate period of a shitstorm)- ALL OF THEM, not just Twitter.
  2. Check out for a comprehensive guide to digital safety.
  3. If you're getting death threads, use a service like or privacyduck to wipe info from people-finding websites like whitepages and spokeo.
# uses
# some guidance via
set -ex
# extract: unzip, unpackbootimg, zcat, cpio
test -d cm || (mkdir cm && cd cm && unzip $CM)
test -d unpack || (mkdir unpack && cd unpack && unpackbootimg -i ../cm/boot.img -o .)
test -d ramdisk-cpio || (mkdir ramdisk-cpio && cd ramdisk-cpio && zcat ../unpack/boot.img-ramdisk.gz > ramdisk.cpio)