Skip to content

Instantly share code, notes, and snippets.

View miton18's full-sized avatar
🎯
Focusing

Collignon-Ducret Rémi miton18

🎯
Focusing
View GitHub Profile
#!/usr/bin/env node
import WebSocket from 'websocket'
const tenant = 'user_xxx'
const namespace = 'pulsar_xxx'
const topic = 'sometopic'
const token = process.env.PULSAR_TOKEN
const producerURL = `wss://c2-pulsar-clevercloud-customers.services.clever-cloud.com:2000/ws/v2/producer/persistent/${tenant}/${namespace}/${topic}?token=${token}&producerName=toto`
const msg = {
@miton18
miton18 / ovh.js
Last active August 25, 2021 10:41
Postman OVH auth support
// environments to define
// endpoint -> https://api.ovh.com/1.0
// applicationKey
// applicationSecret
// consumerKey
// pre request script
pm.request.headers.add({
key: 'X-Ovh-Application',
value: pm.environment.get('applicationKey')
const xapi = require('xapi');
function guiEvent(event) {
console.log(event.WidgetId);
if (event.PanelId === 'cnf')// && event.Type === 'released')
xapi.command('Dial', { Number: 'conf@conf.cms' })
.then(console.log)
.catch(console.log);
}
Rémi Collignon
DevOps a OVH, Speaker au POSS, au Montpellier DevOps ainsi qu'au Finist'Dev
Lyonnais avec un coeur Breton.
Ces 2 dernières années ont été dédiées au merveilleux monde de l'observability en environement distribué, Kafka, HBase et Zookeeper au rendez-vous.
2 ans a découvrir des technos inconnues aux performances stratosphériques et des standards telles que Prometheus et InfluxDB.
Aujourd'hui, j’entame de nouveaux challenges techniques liées au network et NFVs en implémentant un produit de loadbalancer sur K8S.
FROM openjdk:8-jdk
MAINTAINER Rémi C. <remi@collignon-ducret.fr>
USER root
# DEPS
RUN apt update
RUN apt install -y \
git \
libboost-all-dev \
brew install automake openssl boost bison@2.7 ant
export CPPFLAGS=-I/usr/local/opt/openssl/include
export LDFLAGS=-L/usr/local/opt/openssl/lib
export PATH="/usr/local/Cellar/bison/3.3.2/bin:$PATH"
git clone git@github.com:apache/thrift.git
cd thrift
./bootstrap.sh
./configure --with-boost=/usr/local/Cellar/boost/1.69.0 --without-python --without-ruby --without-php -without-nodejs --without-perl --without-tests --disable-dependency-tracking
{
"Import": {
"prefix": "import",
"body": [
"import { $2 } from '${1:package}'",
"$0"
],
"description": "ES6 import"
}
}

Keybase proof

I hereby claim:

  • I am miton18 on github.
  • I am miton18 (https://keybase.io/miton18) on keybase.
  • I have a public key ASBddFtk7my00bE2p85ktqA_2quvqjwPR2nX0Fw-axuugAo

To claim this, I am signing this object:

@miton18
miton18 / myboard.ovh-dashboard-example.json
Last active April 25, 2017 13:51
An example of dashboard you can use in myboard.ovh
{
"endpoint": "https://warp.cityzendata.net",
"tiles": [
[
{
"title": "Time",
"description": "current timestamp",
"refresh": 1,
"warpScript": "NOW",
"type": "Number",
@miton18
miton18 / .zshrc
Last active February 6, 2017 22:16
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="custom-avit"