Skip to content

Instantly share code, notes, and snippets.

@stepf
stepf / Dockerfile
Last active April 5, 2017 13:44
Serving Markdown presentations via reveal-md
FROM alpine:3.4
RUN apk update \
&& apk add --no-cache nodejs \
&& npm install -g reveal-md \
&& rm -rf /var/cache/apk/*
EXPOSE 1948
@stepf
stepf / keybase.md
Last active February 10, 2017 11:25

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@stepf
stepf / bash-try-catch.sh
Created October 28, 2014 09:50
Try-Catch Behavior in Bash
#!/bin/bash --
# Note -- will make script continue despite errors
echo "Some command that fails"
RETURN_CODE=$?; #capture error code here (if any)
echo "Cleanup before script is allowed to fail"
[[ $RETURN_CODE -ne 0 ]] && exit $RETURN_CODE
@stepf
stepf / uberspace_shout-irc.md
Last active August 29, 2015 14:07
How To Install Shout IRC on Uberspace

Quick Guide: How to install Shout IRC on Uberspace

0. Description

This tutorial was tested with Shout 0.40.3. Shout is a self-hosted IRC-client. For more information refer to http://shout-irc.com/

1. Install Shout via npm (node package manager, pre-installed on Uberspace)

npm install -g shout

2. Configure Shout
  • shout configure will open the configuration file (/usr/lib/node_modules/shout/config.js):
@stepf
stepf / R.sublime-completions
Last active January 25, 2017 10:04
Basic R code completions list for Sublime Text, copy to `~/Library/Application Support/Sublime Text 3/Packages/User` to install
/*
R completions list for Sublime Text
last update: 24 Jul 2013
Taken from the R Reference Card
by Bent Jørgensen,
adapted from the R/Rpad Reference Card by Tom Short.
Granted to the public domain. 2011-01-12
http://statmaster.sdu.dk/bent/courses/ST501-2011/Rcard.pdf