Skip to content

Instantly share code, notes, and snippets.

View Stoakes's full-sized avatar
🇪🇺

Antoine Beyet Stoakes

🇪🇺
  • Toulouse, France
View GitHub Profile
@Stoakes
Stoakes / a_regression_test.go
Last active October 31, 2022 16:43
Prometheus client 1.13.0 regression ?
package test
import (
"crypto/tls"
"net/http"
"net/http/httptest"
"testing"
"time"
"github.com/prometheus/client_golang/prometheus"
<?php
/*
* This file is part of the Incipio package.
*
* (c) Florian Lefevre
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@Stoakes
Stoakes / config.json
Created December 27, 2019 20:26
gRPC xds Resolver
{
"xds_servers": [
{
"server_uri": "istio-pilot:15010",
"channel_creds": [{}]
}],
"node": {
"id": "sidecar~192.168.0.1~xds.default~default.svc.cluster.local"
}
}
@Stoakes
Stoakes / link.txt
Created November 16, 2019 14:08
Quel reverse proxy pour mes containers
@Stoakes
Stoakes / fos_comment_routes.txt
Created January 6, 2019 12:44
Fos comment routes
fos_comment_new_threads GET ANY ANY /api/threads/new.{_format}
fos_comment_edit_thread_commentable GET ANY ANY /api/threads/{id}/commentable/edit.{_format}
fos_comment_new_thread_comments GET ANY ANY /api/threads/{id}/comments/new.{_format}
fos_comment_remove_thread_comment GET ANY ANY /api/threads/{id}/comments/{commentId}/remove.{_format}
fos_comment_edit_thread_comment GET ANY ANY /api/threads/{id}/comments/{commentId}/edit.{_format}
fos_comment_new_thread_comment_votes GET ANY ANY /api/threads/{id}/comments/{commentId}/votes/new.{_format}
fos_comment_get_thread GET ANY ANY /api/threads/{id}.{_format}
fos_comment_get_threa
FROM php:7.3-apache
# PHP extensions
ENV APCU_VERSION 5.1.11
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN buildDeps=" \
libicu-dev \
zlib1g-dev \
libzip-dev \
bzip2 \
@Stoakes
Stoakes / benchmark.txt
Created December 3, 2018 21:39
Nats benchmark devqa194
root@commongateway-5f585dcd8f-7r6wn:/home/nginx/go/github.com/nats-io/go-nats/examples/nats-bench# go run main.go -s nats://morbid-panda-nats foo
Starting benchmark [msgs=100000, msgsize=128, pubs=1, subs=0]
Pub stats: 1,228,748 msgs/sec ~ 149.99 MB/sec
root@commongateway-5f585dcd8f-7r6wn:/home/nginx/go/github.com/nats-io/go-nats/examples/nats-bench# go run main.go -s nats://morbid-panda-nats -ms 10000 foo
Starting benchmark [msgs=100000, msgsize=10000, pubs=1, subs=0]
Pub stats: 13,207 msgs/sec ~ 125.96 MB/sec
@Stoakes
Stoakes / messenger.yaml
Created September 30, 2018 21:11
Bug for services key in messenger.yaml ?
# Doesn't work with that
framework:
messenger:
transports:
amqp: '%env(MESSENGER_TRANSPORT_DSN)%'
routing:
'*': amqp
service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: "project=csmrckbackend,service=commongateway,url={{GATEWAY_DNS_NAME}}"
Feature: Suivi de projet
As a suiveur I can CRUD a Projet
@createSchema
Scenario: I can see Projet Homepage
Given I am logged in as "suiveur"
Given I am on "/suivi"
Then the response status code should be 200
Then I should see "Suivi d'Etude"
And I should see "315GLA"