Skip to content

Instantly share code, notes, and snippets.

View jvkassi's full-sized avatar

Jean-Vincent kassi jvkassi

  • Smile CI
  • Côte d’Ivoire
View GitHub Profile
#!/bin/sh
#
#
#
# Modifications are:
# * Remove authbind.
# * Remove JVM_TMP. We will use CATALINA_BASE/temp
# * Explicitly set JAVA_HOME. No need to figure out where it is.
# * Remove SECURITY. We are not using the Java security manager.
# * Remove references to DEFAULT. We have no defaults to use.
@jvkassi
jvkassi / webpack.config.js
Created March 25, 2016 15:35
webpack config for aureila
/*eslint-disable no-var*/
var path = require('path');
var AureliaWebpackPlugin = require('aurelia-webpack-plugin');
var ProvidePlugin = require('webpack/lib/ProvidePlugin');
module.exports = {
devServer: {
host: 'localhost',
port: 3000,
@jvkassi
jvkassi / portainer-stack
Created August 24, 2018 15:20
Stack Portainer
version: '3.2'
services:
agent:
image: portainer/agent
environment:
# REQUIRED: Should be equal to the service name prefixed by "tasks." when
# deployed inside an overlay network
AGENT_CLUSTER_ADDR: tasks.agent
# AGENT_PORT: 9001
@jvkassi
jvkassi / gist:02991afe6f2c177847feb6ec62c08c76
Created August 4, 2020 16:58 — forked from fduran/gist:1870554
Linux disk/memory stress test
# www.fduran.com
# hardware stress test
# mismatched md5sums shows a faulty disk/RAM
# time depends on hardware, ex: 1 sec per 100 count
dd if=/dev/zero of=/tmp/test.file bs=1M count=1000
for i in {1..5}; do md5sum /tmp/test.file; done
@jvkassi
jvkassi / index.html
Last active October 8, 2020 13:20
demo-aurelia-2
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css">
<base href="/">
</head>
<!--
swagger: "2.0"
info:
description: "This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters"
version: 1.0.0
title: Swagger Petstore YAML
termsOfService: "http://swagger.io/terms/"
contact:
email: "apiteam@swagger.io"
license:
name: Apache 2.0
version: "2"
services:
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:7.16.0"
container_name: elasticsearch
environment:
- discovery.type=single-node
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.low=65%
- cluster.routing.allocation.disk.watermark.high=70%
ServerTokens Prod
ServerSignature Off
TraceEnable Off
-----BEGIN RSA PRIVATE KEY-----
MIIG5AIBAAKCAYEAn6uhAAzVPFQ6hdsw9ljljCLE6M9x7rAWBu8I/G0qaXipTwtT
LYoPsjZEWvV7ilwRMn/wlYrOJbvcH34VodCf2vXAV2IQvbyT03k0v6J48/nhV2Rx
8Xmf2OunkBNI1RWVLdmICzkYK0hUu3QWiwWL2DgtG7y/CUsaHIIL35yIr8QzOgSY
97jB+Df8cXJU9crtCosnSYThHDjYd4JgtbA/lmE/j7dsFVrnnFr4NhZhBTrEagcF
FXjQU4v1rciMzrI5FoD0ySGvkMTLU4WD6jeaZXcAjsoKh2RGdwOIDkwJZMqdy3JM
a7kNBC1z43HbjnAnatGMz8uaukqqZ+uepLlVGkNDtqRQFCWUrkBrL63lSOfZ/4Dl
DpMV85Oek3krtIQRvkOgDEeZwVqFDDfzUnx9BWTfXvnZ9UZIdeeacP1KFwiQrGI0
pDEFKaTgXlhbCvwFyZcpRZ+8LtBh87jez33zL+fgF/YZnTPeOfgtkdJQniY+xfoa
jX1E8vq32q8317rvAgMBAAECggGAX34K1PfX07PgKEv2FW8HIe9tansefYzsL4to
[elastic]
elastic_apm.enabled = true
;elastic_apm.api_key = "REPLACE_WITH_API_KEY"
elastic_apm.environment = "R_ENVIRONNEMENT"
elastic_apm.log_level = "INFO"
elastic_apm.log_level_stderr = "INFO"
elastic_apm.secret_token = ""
elastic_apm.server_timeout = "3s"
elastic_apm.server_url = "http://apm-server:8200"
elastic_apm.service_name = "php"