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 / eos.js
Last active June 7, 2016 09:39
Control template for remote control of ETC EOS desks over OSC
loadedInterfaceName = "EOS Remote Control";
interfaceOrientation = "portrait";
pages = [
/********** PAGE 0 *************/
[
{
"name":"userLabel",
"type":"Label",
@DaveThw
DaveThw / mosquitto
Last active December 24, 2017 15:59
init.d script for mosquitto (on a Raspberry Pi)
#!/bin/bash
### BEGIN INIT INFO
# Provides: mosquitto
# 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 mosquitto service
### END INIT INFO
@DaveThw
DaveThw / gist:06308216cba52f9af8ea
Created July 18, 2015 20:48
Scale video cues in Qlab
-- scale the curretly selected cue(s) down to 45% of their current size
-- (specificially, this was useful for resizing all the video cues for the PYT Dance Company Leiden tour 2015!..)
-- if one or more cues are selected, it should scale each cue in turn
-- if any groups are selected, it won’t modify any cues contained within!
-- if no cues are selected (usually happens when you change cue list), this should do nothing
set scaleValue to 0.45
tell front workspace
@DaveThw
DaveThw / cloudprint
Last active August 29, 2015 14:22
init.d script for cloudprint (on a raspberry pi)
#!/bin/bash
### BEGIN INIT INFO
# Provides: cloudprint
# 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 cloudprint service
### END INIT INFO
@DaveThw
DaveThw / get_iplayer_web
Last active November 22, 2022 15:02
init.d script for get_iplayer web server and pvr (on a Raspberry Pi)
#!/bin/bash
### BEGIN INIT INFO
# Provides: get_iplayer_web
# 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 get_iplayer web server and pvr
### END INIT INFO
@DaveThw
DaveThw / vncserver
Last active November 30, 2018 07:37
init.d script for vncserver (on a Raspberry Pi)
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VNC Server
### END INIT INFO
@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