Skip to content

Instantly share code, notes, and snippets.

View k33g's full-sized avatar
💭
Read my code at https://gitlab.com/k33g

Philippe Charrière k33g

💭
Read my code at https://gitlab.com/k33g
View GitHub Profile
@k33g
k33g / sample01.java
Created May 3, 2018 05:47
Redpipe 1er contact
import javax.ws.rs.GET;
import javax.ws.rs.Path;
@Path("/")
public class HelloResource {
@GET
public String hello() {
return "Hello World";
}
}
Apr 24, 2018 6:55:42 AM org.reflections.Reflections scan
INFO: Reflections took 1162 ms to scan 1 urls, producing 14450 keys and 26092 values
Apr 24, 2018 6:55:42 AM org.reflections.ReflectionUtils forName
WARNING: could not get type for name org.eclipse.jetty.npn.NextProtoNego$ServerProvider from any class loader
org.reflections.ReflectionsException: could not get type for name org.eclipse.jetty.npn.NextProtoNego$ServerProvider
at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:390)
at org.reflections.Reflections.expandSuperTypes(Reflections.java:381)
at org.reflections.Reflections.<init>(Reflections.java:126)
at io.swagger.jaxrs.config.BeanConfig.classes(BeanConfig.java:276)
at io.swagger.jaxrs.config.BeanConfig.scanAndRead(BeanConfig.java:240)
destroy:
stage: 🗑destroy_vm
when: manual
environment:
name: feature/$CI_COMMIT_REF_NAME
url: https://$APP_NAME-$CI_COMMIT_REF_SLUG.cleverapps.io
except:
- master
script:
- curl https://clever-tools.cellar.services.clever-cloud.com/releases/latest/clever-tools-latest_linux.tar.gz > clever-tools-latest_linux.tar.gz
deploy_feature:
stage: 🦄deploy_tmp_vm
when: manual
environment:
name: feature/$CI_COMMIT_REF_NAME
url: https://$APP_NAME-$CI_COMMIT_REF_SLUG.cleverapps.io
except:
- master
script:
- curl https://clever-tools.cellar.services.clever-cloud.com/releases/latest/clever-tools-latest_linux.tar.gz > clever-tools-latest_linux.tar.gz
deploy:
stage: 🚢deploy_prod
environment:
name: production
url: https://$APP_NAME.cleverapps.io
only:
- /master/
script:
- curl https://clever-tools.cellar.services.clever-cloud.com/releases/latest/clever-tools-latest_linux.tar.gz > clever-tools-latest_linux.tar.gz
- tar -xvf clever-tools-latest_linux.tar.gz
image: node:latest
stages:
- 📦build
- 🤞test
- 🦄deploy_tmp_vm
- 🗑destroy_vm
- 🚢deploy_prod
cache:
stages:
- 📦build
- 🦄tmp
pdf_preview:
stage: 🦄tmp
when: manual
environment:
name: preview/$CI_COMMIT_REF_NAME
except:
== Chapitre 2
_to be continued_
[NOTE]
====
An admonition block may contain complex content.
.A list
- one
== Chapitre 1: 1er contact
NOTE: An admonition paragraph draws the reader's attention to
auxiliary information.
Its purpose is determined by the label
at the beginning of the paragraph.
<<<
=== You can use emojiis
@k33g
k33g / index.adoc.txt
Last active April 2, 2018 12:44
TOC de mon ebook
:source-highlighter: coderay
= my document
:doctype: book
By philippe.charriere@bots.garden © Bots.Garden
:toc:
include::chapter_01/chapter_01.adoc[]
include::chapter_02/chapter_02.adoc[]