Skip to content

Instantly share code, notes, and snippets.

@bvanderveen
bvanderveen / howtoruby.md
Last active September 4, 2016 21:44
How I installed Ruby on a clean Mac (August 2015)

First prepare your Mac for Developer Mode™.

  • xcode-select --install (now all sorts of stuff works)
  • Install homebrew

Install rbenv and use it to install a Ruby:

  • brew install rbenv ruby-build
  • echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
  • rbenv install
@bvanderveen
bvanderveen / controllersimulator.md
Created December 16, 2015 05:52
controller/simulator workbench

Some notions on making a simulator/control loop bench

With apologies to ML:

iteration :: setpoint -> system-state -> system-state
iteration sp sys = let 
    control-output = control (sp, sys.control-state, sys.dynamic-state)
    control-state' = fst control-output

control-signal = snd control-output

How even GPG

Good question. We'll assume a gpg2 install available at gpg.

Make a keypair

First you have to have a key-pair.

gpg --full-generate-key