Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
package main | |
import ( | |
"database/sql" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"log" | |
"net/http" | |
"time" |
{ | |
"cmd": ["dub", "run"], | |
"working_dir": "${project_path:${folder}}", | |
"file_regex": "^(.*?)\\(([0-9]+),?([0-9]+)?\\): (.*)", | |
"selector": "source.d" | |
} |
fn main() { | |
use std::fs::File; | |
use std::io::prelude::*; | |
use std::fmt; | |
struct Info { | |
name: String, | |
age: i32, | |
rating: i32, | |
} |
<profiles> | |
<profile> | |
<id>CXF</id> | |
<!-- To use Metro by default, move this activation element to its profile below --> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<properties> | |
<cxf.version>3.0.1</cxf.version> |
#!/bin/bash | |
# | |
# Generates client and server certificates used to enable HTTPS | |
# remote authentication to a Docker daemon. | |
# | |
# See http://docs.docker.com/articles/https/ | |
# | |
# To start the Docker Daemon: | |
# | |
# sudo docker -d \ |
#! /bin/bash | |
# HEADS UP! Make sure to use '*' or a valid hostname for the FDQN prompt | |
echo 01 > ca.srl | |
openssl genrsa -des3 -out ca-key.pem | |
openssl req -new -x509 -days 365 -key ca-key.pem -out ca.pem | |
openssl genrsa -des3 -out server-key.pem | |
openssl req -new -key server-key.pem -out server.csr |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- The client -->
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId>
<version>0.0.18</version>
import lombok.extern.slf4j.Slf4j; | |
import net.aalkhodiry.api.configurations.queues.CustomDLQueueDLQueue; | |
import net.aalkhodiry.api.utils.CustomJsonMessageConverter; | |
import org.aopalliance.intercept.Interceptor; | |
import org.springframework.amqp.core.AmqpAdmin; | |
import org.springframework.amqp.rabbit.annotation.EnableRabbit; | |
import org.springframework.amqp.rabbit.config.RetryInterceptorBuilder; | |
import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory; | |
import org.springframework.amqp.rabbit.connection.CachingConnectionFactory; | |
import org.springframework.amqp.rabbit.core.RabbitAdmin; |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import net.aalkhodiry.notifications.utils.LoggingInterceptor; | |
import okhttp3.OkHttpClient; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.context.annotation.Bean; | |
import retrofit2.Retrofit; | |
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory; | |
import retrofit2.converter.gson.GsonConverterFactory; |