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
// Raw timings pour les commandes Roblin (protocole propriétaire)
uint16_t ROBLIN_ONOFF[] = { 1030, 420, 1030, 1120, 1730, 420, 930, 520, 880, 1220, 1580, 2020, 780, 1320, 780, 670, 1480 }; // Hash=0x4D06F7CD
uint16_t ROBLIN_MORE[] = { 1030, 470, 2480, 420, 930, 520, 930, 520, 2280, 620, 830, 1970, 2280, 1320, 1530 }; // Hash=0xD366A636
uint16_t ROBLIN_LESS[] = { 1080, 1120, 1680, 470, 930, 520, 930, 1170, 1630, 570, 830, 2670, 1530, 1320, 1530 }; // Hash=0x9A38260A
uint16_t ROBLIN_INTENSIVE[] = { 1030, 420, 1780, 1120, 980, 420, 980, 470, 1630, 1220, 880, 1970, 1530, 2020, 1530 }; // Hash=0xF7B0BF8F short press
uint16_t ROBLIN_AUTO[] = { 1080, 420, 2480, 1120, 980, 1170, 2330, 1970, 830, 620, 2280 }; // Hash=0x815BD992 long press
uint16_t ROBLIN_LIGHT[] = { 1030, 470, 980, 420, 1730, 1170, 930, 470, 930, 520, 1580, 2670, 830, 620, 780, 620, 2280 }; // Hash=0x4668257 short press (cycle = HIGH -> MED -> OFF)
uint16_t ROBLIN_APPAIRAGE[] = { 1030, 470, 3180, 470, 930, 1170, 3080, 1320, 780, 620, 2980 };
terraform {
required_providers {
clevercloud = {
source = "CleverCloud/clevercloud"
version = "1.6.0"
}
}
}
provider "clevercloud" {
npm install --global cdktf-cli@latest
mkdir proj && cd proj
cdktf init --template typescript --local --providers "CleverCloud/clevercloud"
# edit cdktf.json
"terraformProviders": [
+ "CleverCloud/clevercloud"
],
#!/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

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: