Skip to content

Instantly share code, notes, and snippets.

View bbannier's full-sized avatar
💭
ヽ(。_°)ノ 𝚢𝚘𝚞 𝚘𝚗𝚕𝚢 𝕐𝕆𝕃𝕆 𝚘𝚗𝚌𝚎 🍿

Benjamin Bannier bbannier

💭
ヽ(。_°)ノ 𝚢𝚘𝚞 𝚘𝚗𝚕𝚢 𝕐𝕆𝕃𝕆 𝚘𝚗𝚌𝚎 🍿
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
set -eux
DCOS="$HOME"/src/dcos
MESOS="$HOME"/src/mesos
COMMIT=$1
# Check if Mesos commit $1 contains $2.
#!/usr/bin/env python3
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#!/bin/sh
set -e
set -o pipefail
readonly MESOS_DIR="$(git rev-parse --show-toplevel)"
# shellcheck source=atexit.sh
. "$MESOS_DIR"/support/atexit.sh
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <type_traits>
using std::is_callable_v;
template <typename Fn, typename A> constexpr auto bind(Fn fn, A &&a) noexcept {
return [fn, a](auto &&... args) { return fn(a, args...); };
}
int main() {
constexpr auto b0 = bind([]() {}, 4);
<!DOCTYPE html>
<title>Mesos build time</title>
<script>
var kTree = {
"data": {
"$area": 16345.179000000006,
"$dominant_symbol": "node"
},
"name": "'everything' 4h32m25.2s",
"children": [
filter {
grok {
match => { "message" => "^(?<loglevel>[F|E|I|W])%{MONTHNUM:month}%{MONTHDAY:monthday}\s+%{TIME:time}\s+%{POSINT:pid}\s+(?<file>\w*.\w*):%{POSINT:line}]\s+%{GREEDYDATA:msg}" }
}
mutate {
add_field => {
"timestamp" => "%{time} %{month} %{monthday} 2016"
}
}
date {
From fe9ab8393c38a454864043a5b70c0c9af5c1baa9 Mon Sep 17 00:00:00 2001
From: Benjamin Bannier <benjamin.bannier@mesosphere.io>
Date: Tue, 26 Apr 2016 16:42:38 +0200
Subject: [PATCH] Site validation.
---
site/Gemfile | 4 +++-
site/Rakefile | 7 +++++++
2 files changed, 10 insertions(+), 1 deletion(-)
@bbannier
bbannier / .clang-format
Last active March 6, 2016 13:01
clang-format config for mesos style, requires [custom clang-format](https://github.com/bbannier/clang/tree/mesos)
---
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -2
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: true
AlignOperands: true
AlignTrailingComments: false