Skip to content

Instantly share code, notes, and snippets.

@chazcheadle
chazcheadle / mosquitto.service
Created August 2, 2016 15:13
Mosquitto MQTT Broker systemd start up script
[Unit]
Description=Mosquitto MQTT Broker daemon
ConditionPathExists=/etc/mosquitto/mosquitto.conf
After=network.target
Requires=network.target
[Service]
Type=forking
RemainAfterExit=no
StartLimitInterval=0
@xconnecting
xconnecting / build.gradle
Created November 29, 2012 01:25
Gradle: Using jdbc in build script
import groovy.sql.Sql
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'maven'
repositories { mavenCentral() }
configurations { driver }
dependencies { driver 'org.xerial:sqlite-jdbc:3.7.2' }