blocks by whiteinge

multiScan RxJS operator

Utility functions that fit the Fetch ecosystem API philosophy

Datastar proof-of-concept with POSIX sh and socat

Simple (Lodash-inspired) orderBy for native sort and toSorted methods

A wrapper around FormData to return an object with checkbox booleans and arrays for compound fields

Redux and redux-thunk implemented as component-state, or hook-state, and/or context-state

Example of a Mealy state machine (initial pattern stolen from somewhere that I forgot to cite)

WIP

Firefly-class transport ship Serenity ...in ascii

Wrapper to fetch CSRF token and authenticate via the login page

File sizes for "hello world" in various comple-to-C and compile-to-binary languages

Add Shadow DOM support to hyperscript experiment

One interpretation of simple vs. easy in JavaScript

Minimal RxJS + Flux drag-and-drop to reorder POC

Use an ADT with RxJS to model a complete ajax request/response life cycle (in batches!)

Wrap Node's https.request() in an RxJS observable

GitGraph.js branching and release process example

Verbose node.js websocket logging server

An example of a complex, multi-host Salt Orchestrate state that performs status checks as it goes

Convert an Rx4 Observable into an Rx5 Observable (in case you need both)

A bare-bones minimal (and probably slightly incorrect) implementation of Maybe, Either, IO, and Task

waitLatestFrom RxJS operator as a middle-ground between withLatestFrom and combineLatest

CLI tool to validate a Voluptuous schema (can be used as a pre-commit hook)

An RxJS poller with incremental back-off as a let-function

Prereq example for optionally draining Apache before updating a web app

An example of canonical Flux using vanilla RxJS

Misc collection of shorthand helper functions for Flux implemented with Rx

Render a spinner while waiting for an ajax response using RxJS

POC Node HTTP server for server-sent-events using RxJS

Tornado worker threads plus SSE streams plus reading/writing to sqlite; this is a benchmarking POC and not useful in production!

Alternative to Observable.fromCallback that does not complete itself

A convenience wrapper around React.createElement() to allow succinctly using React without using JSX

POC for writing status updates to a sqlite db. Updates are written using an Orchestrate file. The Orchestrate file can be called via the Reactor.

An example of using the asyncio library to watch multiple salt-api SSE HTTP streams

This is roughly the same as how Salt's CLI works but without the periodic saltutil.find_job calls

Example of a hook for vcs_info for optionally displaying the git revision

A POSIX sh implementation of Salt's eventlisten.py script. Uses salt-api's event HTTP stream.

keybase.md

Output IP addresses for machines connected to the local machine using /proc/net/tcp for speed

A not-so-simple but minimal example of a CherryPy app.

Self-extracting RPM installer

The planning stages of a for-development shell environment for Salt

Functions to more easily work with a ton of organization repos

Salt Grains examples for a variety of platforms

Bare WSGI app for testing gevent streaming

Salt is used to execute functions across a wide variety of locations in a wide variety of ways. It does this by mapping the function name and function parameters within a data structure (JSON-serializable). Unfortunately, there is a variety of formats in different parts of Salt for doing so.

Shell functions for doing post-OS-install configuration of a VirtualBox VM. In particular, a shell wrapper around ``VBoxManage guestcontrol`` that allows running commands on the guest without knowing the IP or having ssh configured. Also includes an example of pushing small files (through stdout) to the guest via HEREDOC.

A script to bootstrap a new Ubuntu machine for use as a PHP webserver. This gist exists to remind me / demonstrate a handful of techniques for organizing a large shell script.

A Makefile to help with Salt development

A Tasker task for texting a driving time estimate between your current location and home. Expects two variables to be set: HOME: An address, zip code, etc to use as the destination address when querying the Google Maps API. HOMENUM: A phone number to send the text to.

A fabric file to bootstrap an Ubuntu system for use as a VirtualBox master image for development VMs using port-forwarding and shared folders.

A baseline JS toolbox for new projects

Experimental map shell function using xargs

Grab RAM usage, load, and Apache processes

Example fabric script with VirtualBox automation