Skip to content

Instantly share code, notes, and snippets.

# neovim
# tmux
# zsh
# git
# sdkman - java, gradle, maven, kotlin
#
sudo apt update
sudo apt install build-essential curl file git tmux zsh unzip zip ca-certificates-java
sudo apt upgrade
#!/bin/sh
wget http://github.com/robspassky/gists/abc -o /tmp/bootstrap.sh
sh /tmp/bootstrap.sh
"""
ladder.py
words3.txt was created by the following:
$ egrep '^[a-z][a-z][a-z]$' /etc/dictionaries-common/words > words3.txt
algorithm:
@robspassky
robspassky / fsm.js
Last active August 1, 2017 04:05
FSM (finite-state-machine) for javascript
window.robspassky = window.robspassky || {};
/**
* I've found finite state machines to be very helpful for managing the
* complexity of a web UI. This short function generates a FSM given a
* set of states.
*
* Each state has optional "entry" and "exit" functions and must contain
* a "transitions" object, whose property names are event names, and whose
* property values are functions that operate on the arguments of the
@robspassky
robspassky / inetd_www.bash
Created March 2, 2012 15:59
bash shell script to serve an http request via inetd
#!/bin/bash
#
# Shell script usable as web "server"
# Code mostly copied from web, my contribution was to add the sanitation.
#
###
### PARSE THE REQUEST
###