Skip to content

Instantly share code, notes, and snippets.

@fluffywaffles
fluffywaffles / 81-net-alias-link.rules
Created January 30, 2022 18:48
udev rule for renaming wireless interface link to fix Attribute Policy Error -22
@fluffywaffles
fluffywaffles / embrace
Created November 2, 2019 05:48
embrace
It was an unintentional embrace. I held him, then, and I did not say
anything, because I did not know what to say. He spoke, and I could not
understand. He spoke again, and again, and he repeated himself, as if to
say: "please, just know this one thing." As if to imply it mattered for me
to know. But still, I did not understand. He stopped speaking, and yet I
held him. His arms grew heavy over me, and his head weighed upon my
shoulder. He did not croak; he did not gasp his breath; no, silently,
unflinchingly, inert, he died. Uncomprehendingly I held him. It seemed
like an eternity, and I was moved, finally, to say: "Hello." He did not
respond - even in his own language - even just to move a muscle. So it
@fluffywaffles
fluffywaffles / gist.zsh
Created October 10, 2019 00:22
gist.zsh
#!/bin/zsh
function json_quote {
node -e "console.log(JSON.stringify(fs.readFileSync('$1').toString()))"
}
github_gist_token=$(cat ~/.github-gist-token)
file=$1
quoted_file_contents=$(json_quote $file)
file_name=$(basename $file)
@fluffywaffles
fluffywaffles / intercept-object.mjs
Created August 9, 2019 03:31
intercept-object.mjs
import {
ᐅ,
get,
has,
set,
bind,
reflex,
fallible,
update_path,
map_properties,
#!/bin/zsh
function json_quote {
node -e "console.log(JSON.stringify(fs.readFileSync('$1').toString()))"
}
github_gist_token=$(cat ~/.github-gist-token)
file=$1
quoted_file_contents=$(json_quote $file)
file_name=$(basename $file)
@fluffywaffles
fluffywaffles / traverse.vim
Last active February 14, 2019 16:39
In-order Traversal of {}-Delimited Blocks
" Adapted from ":help [["
" To use ]] and [[ as: "go to next/previous section open/close"
map ]] /\%({\\|}\)$<CR>
map [[ ?\%({\\|}\)$<CR>
λ git master* → DEBUG=cypress:* npx cypress open [ ins ] 100% (full)
cypress:cli cli starts with arguments [/usr/local/bin/node,xxx/node_modules/.bin/cypress,open] +0ms
cypress:cli parsed cli options {} +108ms
cypress:cli opening from options {project:xxx} +2ms
cypress:cli command line arguments [--project,xxx] +0ms
cypress:cli verifying Cypress app +0ms
cypress:cli path to info.json file xxx/cypress/dist/info.json +1ms
cypress:cli { version: '1.0.2', verifiedVersion: '1.0.2' } +7ms
cypress:cli installed version is 1.0.2 comparing to 1.0.2 +2ms
cypress:cli checking if executable exists xxx/node_modules/cypress/dist/Cypress/Cypress +0ms

Keybase proof

I hereby claim:

  • I am fluffywaffles on github.
  • I am fluffywaffles (https://keybase.io/fluffywaffles) on keybase.
  • I have a public key ASBEa2MuGgSnAeD0ulMDkxozs_Q2Euc6thJ2FZlKP2_FoAo

To claim this, I am signing this object:

module MakeAThing (M: sig type t end) = struct
type t =
| M of M.t
| SomethingElse
end
module MyThing = MakeAThing(struct type t = | It | Has | Variants end)
let _ = MyThing.(M It) (* --> Error, unbound constructor "M" *)
@fluffywaffles
fluffywaffles / logging.cljc
Created June 28, 2017 21:30 — forked from martinklepsch/logging.cljc
simple Clojurescript logging using Google Closure logging tools
;; This previously was CLJX but has now been updated to use cljc. Thanks @caskolkm
;; https://gist.github.com/caskolkm/39d823f5bac7051d3062
(ns app.logging
(:refer-clojure :exclude [time])
(:require #?(:clj [clojure.tools.logging :as log]
:cljs [goog.log :as glog]))
#?(:cljs (:import goog.debug.Console)))
#?(:cljs