Recent News
Switching from Wordpress to a static website
I migrated my Blog site from Wordpress to a faster static web site using markdown files and Hugo.
read more
My Networking Survival Kit
In this small tutorial I’ll speak about tunneling, ssh port forwarding, socks, pac files, Sshuttle
I’ve been using Linux since 1995 but I have never been interested a lot in networking. In these many days of smart working (due to Covid-19) I have found some useful tricks to connect to remote systems that are not directly reachable from my lan/vpn
Case 1 (port forwarding): I wanted to connect to targethost.redaelli.org at tcp port 10000 but I was not able to reach it directly but only through an other host (tunnelhost.
read more
How to backup and restore Glue data catalog
How to recover a wrongly deleted glue table? You should have scheduled a periodic backup of Glue data catalog with
aws glue get-tables --database-name mydb > glue-mydb.json And recreate your table with the command
aws glue create-table --cli-input-json '{...}' But the json format of aws glue get-tables is quite different from the json format of aws create-table. For the conversion you can use a simple python script like the following one
read more
AWS Lake Formation: the new Datalake solution proposed by Amazon
AWS Lake Formation is a service that makes it easy to set up a secure data lake in days. A data lake is a centralized, curated, and secured repository that stores all your data, both in its original form and prepared for analysis. A data lake enables you to break down data silos and combine different types of analytics to gain insights and guide better business decisions.
However, setting up and managing data lakes today involves a lot of manual, complicated, and time-consuming tasks.
read more
Building a Cloud-Agnostic Serverless infrastructure with Apache OpenWhisk
“Apache OpenWhisk (Incubating) is an open source, distributed Serverless platform that executes functions (fx) in response to events at any scale. OpenWhisk manages the infrastructure, servers and scaling using Docker containers so you can focus on building amazing and efficient applications…
DEPLOY Anywhere: Since Apache OpenWhisk builds its components using containers it easily supports many deployment options both locally and within Cloud infrastructures. Options include many of today’s popular Container frameworks such as Kubernetes, Mesos and Compose
read more
Building a Cloud-Agnostic Serverless infrastructure with Knative
KNATIVE is Kubernetes-based platform to build, deploy, and manage modern serverless workloads
“Knative provides a set of middleware components that are essential to build modern, source-centric, and container-based applications that can run anywhere: on premises, in the cloud, or even in a third-party data center. Knative components are built on Kubernetes and codify the best practices shared by successful real-world Kubernetes-based frameworks. It enables developers to focus just on writing interesting code, without worrying about the “boring but difficult” parts of building, deploying, and managing an application.
read more
Google Assistent in italiano per comandarele luci Xiaomi
Finalmente posso comandare le luci (xiaomi) di casa mia in italiano con Google Assistant! Per esempio funzionano le frasi
accendi le luci spegni le luci luce rossa luce banca calda …
read more
howto extract sentences from an ebook/doc/pdf/text file
You can easily extract sentences froma epub/pdf/office/text file thanks to the opensource projects [Apache Tika](http://Apache Tika) and Apache OpenNlp with a command like``` java -jar tika-app-1.14.jar -t ebook.epub | opennlp SentenceDetector it-sent.bi
read more
Deploy tomcat applications in Docker containers
Deploying you applications in containers, you are sure that they are easily portable and scalable… Here a sample of deploying a .war application using a Docker container Create a Dockerfile like``` FROM tomcat:8-jre8
MAINTAINER “Matteo matteo.redaelli@gmail.com”
ADD server.xml /usr/local/tomcat/conf/ ADD tomcat-users.xml /usr/local/tomcat/conf/ ADD ojdbc6.jar /usr/local/tomcat/lib/ ADD bips.war /usr/local/tomcat/webapps/ Build a docker image docker build . -t myapp Run one or more docker images of your appplication with docker run –restart=unless-stopped –name myapp1 -p 8080:8080 -d myapp docker run –restart=unless-stopped –name myapp2 -p 8081:8080 -d myapp It is better to redirect tomcat logs to stdout: in this way you can see them with docker logs myapp
read more
Continuous integration and continuous delivery with Jenkins
In this post I’ll show how to use the opensource tool #Jenkins, “the leading #opensource automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project”. I’ll create a simple pipeline that executes remote tasks via ssh. It could be used for continuous integration and continuous delivery for Oracle OBIEE Systems
Install (in a docker container) docker run -p 8080:8080 -p 50000:50000 -v /home/oracle/docker\_shares/jenkins:/var/jenkins\_home -d jenkins Configure credentials Login to Jenkins (http://jenkins.
read more