Skip to content

Instantly share code, notes, and snippets.

@ryan-ju
ryan-ju / _service.md
Last active December 29, 2018 17:34 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@ryan-ju
ryan-ju / pom.xml
Created December 9, 2014 23:31
This is an example pom file that dependency plugin somehow fails to resolve all dependencies.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.stackoverflower.example</groupId>
<artifactId>docker-restaesy-1</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
@ryan-ju
ryan-ju / context.xml
Created February 9, 2014 22:35
Weld + Resteasy configuration example
<Context>
<Resource name="BeanManager"
auth="Container"
type="javax.enterprise.inject.spi.BeanManager"
factory="org.jboss.weld.resources.ManagerObjectFactory"/>
</Context>