Skip to content

Instantly share code, notes, and snippets.

View cinderblock's full-sized avatar
💭
Waiting for PCB fab

Cameron Tacklind cinderblock

💭
Waiting for PCB fab
View GitHub Profile
@cinderblock
cinderblock / pixelblaze-interface.ts
Created September 15, 2020 04:14
Extracted javascript interface for talking to pixelblaze expander boards
import { State } from '../shared/State';
import SerialPort from 'serialport';
import { promisify } from 'util';
/**
* This file is for communicating with a PixelBlaze Expander board.
*
* This should basically match what is found here: https://github.com/simap/pixelblaze_output_expander
*
* Cameron's summary of the packet format:
@cinderblock
cinderblock / Setup Raspberry Pi OS Image Script.md
Last active September 27, 2021 00:19
Scripts to setup a Raspberry Pi OS image **before** flashing to SD card
@cinderblock
cinderblock / zeit-ncc.d.ts
Last active February 14, 2020 08:48
Type declarations for @zeit/ncc. WIP
declare module '@zeit/ncc' {
/**
* Options except watch.
*/
type Options = {
/**
* Provide a custom cache path or disable caching.
*/
cache?: string | false;
@cinderblock
cinderblock / LogarithmicRCSlider.tsx
Last active December 4, 2019 01:01
Initial version of a Logarithmic wrapper for rc-slider
import * as React from 'react';
import Slider, { SliderProps } from 'rc-slider';
type NumberMap = (x: number) => number;
type Map = number | boolean | { axisFromReal: NumberMap; realFromAxis: NumberMap };
export default function LogarithmicRCSlider({
map,
steps,
@cinderblock
cinderblock / upgrade-rocket.chat.sh
Created May 17, 2018 21:04
Simple script for updating rocket.chat on a systemd machine
#!/bin/bash
# USAGE: `./update-rocket.chat.sh` as regular user with sudo permissions
# Make script fail on any error
set -e
# Ensure that we're working inside of /opt
cd /opt

Keybase proof

I hereby claim:

  • I am cinderblock on github.
  • I am cinderblock (https://keybase.io/cinderblock) on keybase.
  • I have a public key whose fingerprint is 1D56 4A6F 3E7C ED26 EF82 FFE8 989F 41E6 74E7 795F

To claim this, I am signing this object:

@cinderblock
cinderblock / dump.txt
Created August 18, 2015 07:06
Enomic dump
Hello world!
@cinderblock
cinderblock / dump.txt
Created August 18, 2015 07:06
Enomic dump
Hello world!
@cinderblock
cinderblock / dump.txt
Created August 18, 2015 07:05
Enomic dump
Hello world!
@cinderblock
cinderblock / dump.txt
Created August 18, 2015 07:05
Enomic dump
Hello world!