bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
| # generate private key | |
| openssl genrsa -out private.pem 2048 | |
| # extatract public key from it | |
| openssl rsa -in private.pem -pubout > public.pem |
| image: docker:latest | |
| variables: | |
| REPOSITORY_URL: <AWS ACCOUNT ID>.dkr.ecr.eu-central-1.amazonaws.com/<ECS REPOSITORY NAME> | |
| REGION: eu-central-1 | |
| TASK_DEFINTION_NAME: <TASK DEFINITION NAME> | |
| CLUSTER_NAME: <CLUSTER NAME> | |
| SERVICE_NAME: <SERVICE NAME> | |
| services: |
| brew options ffmpeg | |
| brew install ffmpeg \ | |
| --with-chromaprint \ | |
| --with-fdk-aac \ | |
| --with-fontconfig \ | |
| --with-freetype \ | |
| --with-frei0r \ | |
| --with-game-music-emu \ | |
| --with-libass \ |
| window.Clipboard = (function(window, document, navigator) { | |
| var textArea, | |
| copy; | |
| function isOS() { | |
| return navigator.userAgent.match(/ipad|iphone/i); | |
| } | |
| function createTextArea(text) { | |
| textArea = document.createElement('textArea'); |
| # generate private key | |
| openssl genrsa -out private.pem 2048 | |
| # extatract public key from it | |
| openssl rsa -in private.pem -pubout > public.pem |
| $INPUTVIDEO='input.mp4' | |
| $OUTPUTVIDEO='output.mp4' | |
| ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO |
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
Picking the right architecture = Picking the right battles + Managing trade-offs
| # Get Graphics Magick | |
| > cd / | |
| > mkdir /dowload | |
| > cd /download | |
| > wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/GraphicsMagick-LATEST.tar.gz | |
| > tar -xzvf GraphicsMagick-LATEST.tar.gz | |
| > cd GraphicsMagick-1.3.21 (or the lastest graphics magick) | |
| # Install Graphics Magick | |
| ## Get libs |
| package io.vertx.blog; | |
| import io.vertx.core.AbstractVerticle; | |
| import io.vertx.core.http.HttpServerResponse; | |
| import io.vertx.core.json.JsonArray; | |
| import io.vertx.core.json.JsonObject; | |
| import io.vertx.ext.jdbc.JDBCClient; | |
| import io.vertx.ext.sql.SQLConnection; | |
| import io.vertx.ext.web.Router; | |
| import io.vertx.ext.web.handler.BodyHandler; |