Skip to content

Instantly share code, notes, and snippets.

View stuzart's full-sized avatar

Stuart Owen stuzart

  • University of Manchester
  • Manchester, UK
View GitHub Profile
@stuzart
stuzart / gist:603376877d3f7e3f1a284e314a0f171e
Created July 22, 2020 15:13
basic registering a workflow with workflow hub
import requests
import json
import string
import getpass
base_url = 'https://testing2.fair-dom.org'
containing_project_id = 1
token = ""
@stuzart
stuzart / gist:e4219ec7cb161129f1c7
Last active August 29, 2015 14:07
simple init.d script for stopping and starting SEEK background workers
#!/bin/sh -e
#
# Symlink target for initscripts that have been converted to Upstart.
set -e
start_job() {
echo "Starting delayed job"
sudo -Hu www-data bash -c "source ~/.rvm/scripts/rvm && cd /srv/rails/seek/ && RAILS_ENV=production bundle exec rake seek:workers:start"
}
@stuzart
stuzart / gist:3787679
Last active October 15, 2020 16:51
init.d script for stopping and starting the soffice service
#!/bin/bash
# originally from: http://code.google.com/p/openmeetings/wiki/OpenOfficeConverter
# openoffice.org headless server script
#
# description: headless openoffice server script
# processname: openoffice
#
# Author: Vic Vijayakumar
# Modified by Federico Ch. Tomasczik
@stuzart
stuzart / gist:3169625
Last active March 8, 2017 12:37
Simple init.d script for delayed_job
#!/bin/sh
# upstart-job
#
# Symlink target for initscripts that have been converted to Upstart.
set -e
APP_PATH="/srv/rails/seek"
start_job() {
echo "Starting delayed job"
@stuzart
stuzart / gist:3143434
Last active April 22, 2017 12:24 — forked from anonymous/gist:2788607
init.d script for stopping and starting sunspot solr
#!/bin/sh -e
# upstart-job
#
# Symlink target for initscripts that have been converted to Upstart.
set -e
APP_PATH="/srv/rails/seek"
start_sunspot(){
echo "Starting Sunspot"
@stuzart
stuzart / gist:3143431
Created July 19, 2012 12:13 — forked from anonymous/gist:2788607
init.d script for stopping and starting sunspot solr
#!/bin/sh -e
# upstart-job
#
# Symlink target for initscripts that have been converted to Upstart.
set -e
APP_PATH="/srv/rails/seek"
COMMAND="$1"
shift