vertx quartz integration

I found an old project (vertx 2.2), that show a possible integration between quartz scheduler and vertx:

This project use vertx event bus to act when the job trigger is executed.

I would like to create a management interface with REST methods (to create/delete/list new job) and the execution of jobs is out of this verticle.

The job submission will be using a json object:
– cron expresion
– action: http url to call
– method: post/get/put/delete
– data to send when the trigger will be execute


Clustered JDBC Job store configuration:


ubuntu: update nodeJS to latest

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

sudo ln -sf /usr/local/n/versions/node/<VERSION>/bin/node /usr/bin/node
To upgrade to latest version (and not current stable) version, you can use

sudo n latest
To undo:

sudo apt-get install –reinstall nodejs-legacy # fix /usr/bin/node
sudo n rm 6.0.0 # replace number with version of Node that was installed
sudo npm uninstall -g n


vertx docker: logging on file


To configure the file (that let you customize JUL loggers`), set theVERTX_JUL_CONFIG environment variables:

COPY ./ $VERTICLE_HOME/                       (1)
  1. Copy your file
  2. Set the VERTX_JUL_CONFIG environment variable

docker export and import a docker image

In breve 1) tagghiamo 2) salviamo 3) copiamo su nuovo server 4) docker load:

  1. docker commit 1234567890 imageToExport
  2. docker save imageToExport > /tmp/imageToExport.tar
  3. copy imageToExport.tar file to new server
  4. docker load < /tmp/imageToExport.tar appunti di lavoro

  • aggiungere a docker per vertx logging in file
    • export LOG=$OPENSHIFT_LOG_DIR/out.log
    • nohup java -Dhttp.port=$OPENSHIFT_DIY_PORT -Dhttp.address=$OPENSHIFT_DIY_IP -jar $OPENSHIFT_REPO_DIR/application/*-fat.jar > $LOG 2>&1 &

android camera + scheduler = prototyping for op3n4lpRx

I would like to develope a simple app on android that:
– take photo at millisecond interval
– use location
– send to server
create android app using html (webview):
Scheduling of tasks in Android with the AlarmManager and the JobScheduler – Tutorial:
Android Location API – Tutorial:
Android Camera API – Tutorial:
Androird Annotations:



jpeppol: check list before deploy in production

– copy wildfly-10 with apps inside
– copy wildfly init.d scripts
– copy mysql script to connect from shell
– install shell client mysql
– install a minimal mysql db
– install jdk 1.8 oracle using apt
– install jre security ext (to resolve ca cert key)
– install nginx  and create configuration files
– install letsencrypt and generate certificates
– configure nginx to use letsencrypt
– configure timezone on ubuntu
– create working dir on /mnt/jpeppol
– set max number of connections (mysql)
– copy latest jpeppol version
– verify sml registration (using official cacert)
– cd /etc/ssl/certs; sudo openssl dhparam -out dhparam.pem 4096
– add to nginx:
ssl_dhparam /etc/ssl/certs/dhparam.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ecdh_curve secp384r1;
# Requires nginx >= 1.1.0
ssl_session_cache shared:SSL:10m;
#ssl_session_tickets off;
# Requires nginx >= 1.5.9
ssl_stapling on; # Requires nginx >= 1.3.7
ssl_stapling_verify on; # Requires nginx => 1.3.7
#resolver $DNS-IP-1 $DNS-IP-2 valid=300s;
#resolver_timeout 5s;
add_header Strict-Transport-Security “max-age=63072000; includeSubdomains; preload”;
add_header X-Frame-Options DENY;
– restart nginx
– verify ssl configuration on:
– install le-renew
service nginx stop # or whatever your webserver is
/home/admin/letsencrypt/letsencrypt-auto renew -nvv –standalone > /var/log/le-renew.log 2>&1
service nginx start # or whatever your webserver is
if [ “$LE_STATUS” != 0 ]; then
echo Automated renewal failed:
cat /var/log/le-renew.log
exit 1
– configure crontab: crontab -e
0 2 * * * /usr/bin/find /opt/wildfly/standalone/log/server.log.* -exec /bin/gzip ‘{}’ \;
30 2 * * 1 /etc/init.d/le-renew

strong security on nginx

Usare un certificato valido non basta. Andando a fare delle analisi approfondite del proprio server si scoprono tante cose inaspettate.. ma correggibili!

test your ssl:

E a questo punto, se non avete un grado “A”, rimboccate le maniche…

add a new service on ubuntu

Steps to adding/creating new service in ubuntu:

  1. Create the service file in /etc/init.d/<service name>
  2. chmod 700 /etc/init.d/<service name>
  3. update-rc.d <service name> defaults
  4. update-rc.d <service name> enable

now see you service in

service --status-all