Skip to content

Instantly share code, notes, and snippets.

View kalw's full-sized avatar

Regis A. Despres kalw

View GitHub Profile
@kalw
kalw / gitlab-timeline.html
Created April 3, 2020 16:43 — forked from alexkrauss/gitlab-timeline.html
Timeline charts for Gitlab build jobs
<html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
// This is a quick hack to be able to see Gantt-like Timelines of gitlab build pipelines.
// It makes it easier to diagnose the running time of the pipelines and understand resource usage.
// Ideally, gitlab would directly provide such a view in its frontend.
google.charts.load('current', {'packages':['gantt']});
@kalw
kalw / curl
Created October 8, 2013 09:56 — forked from stonith/curl
curl -XPUT localhost:9200/_template/logstash -d '
{
"template" : "logs-*",
"settings" : {
"index.analysis.analyzer.default.type": "simple",
"index.cache.field.type": "soft",
"index.compress.stored": true,
"index.merge.policy.max_merged_segment": "5g",
"index.query.default_field": "@message",
"index.refresh_interval": "5s",