Skip to content

Instantly share code, notes, and snippets.

@mariosotil
mariosotil / ds4drv
Created March 14, 2016 07:28
ds4drv service to be installed on init.d
#! /bin/sh
### BEGIN INIT INFO
# Provides: ds4drv
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: ds4drv daemon
# Description: ds4drv daemon
### END INIT INFO
@mariosotil
mariosotil / SwaggerValidator.java
Last active January 16, 2017 14:44
To be injected as a singleton, it allows validate a Swagger 2.0 description resource
/* Copyright 2017 Mario Sotil
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,