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%
[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"
ServerTokens Prod
ServerSignature Off
TraceEnable Off
FROM php:PHP_VERSION-apache
RUN apt-get update && apt-get install -y \
vim \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg
RUN /usr/local/bin/docker-php-ext-install -j$(nproc) gd mysqli pdo pdo_mysql