Skip to content

Instantly share code, notes, and snippets.

View DaveThw's full-sized avatar

Dave Thwaites DaveThw

  • Bury St Edmunds, UK
View GitHub Profile
@DaveThw
DaveThw / install_ruby.sh
Last active July 1, 2020 06:59 — forked from blacktm/install_ruby_rpi.sh
A Bash script to install Ruby, using rbenv/ruby-build, on Ubuntu/Debian and derivatives
#!/bin/bash
# ------------------------------------------------------------------------------------------------
# Installs Ruby using rbenv/ruby-build - can be used multiple times, to install different versions
#
# Download and run locally:
# wget git.io/inst_ruby -O install_ruby.sh && chmod a+x install_ruby.sh
# ./install_ruby.sh 2.6.6
#
# Run from the web:
@DaveThw
DaveThw / node-red
Last active August 29, 2015 14:14 — forked from Belphemur/node-red
init.d script for Node-RED on a Raspberry Pi
#!/bin/bash
### BEGIN INIT INFO
# Provides: node-red
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the node-red server
### END INIT INFO