IT Featured

IT Featured Articles on cool technologies, focused on System Administration and Programming Languages

Bash TCP conection feature

Bash support tcp connection out of the box :)   So you can write something like #!/bin/bash webhost="gioorgi.com" exec 5<>/dev/tcp/$webhost/80 echo -e "GET / HTTP/1.1\r\nHost: $webhost\r\nContent-Length: 0\r\n\r" >&5 # get reply: HTTP/1.1 301 Moved Permanently^M cat <&5  

The end of the Database Mangement System as we know it

In Microservices architecture, you decompose your services in a set of fine-grained services. These services are full-stack software, from front end API down to database layer. Each microservice is responsible and owns its data. For instance if you have a MovieInventory service and a CheckIn/Checkout services, they must communicate each other via API. To search …

The end of the Database Mangement System as we know it Read More »

AWS ECS is NOT Docker Swarm

Amazon Elastic Container services (ECS) is the Amazon Solution for running  docker containers on Amazon. ECS is not a docker swarm implementation. I am writing this article to stress this, because this point is not very clear digging in the tutorials (it is explained a bit in the question “What is the difference between Docker Swarm, …

AWS ECS is NOT Docker Swarm Read More »

QB64: basic Revenge

Quick Basic64 is a QBasic compatible programming language actively mantained. It produce C-compiled code and works under Linux and MacOS too. It resemble the original QBasic IDE, and supports its dialect. If you have some old qbasic code to “update”, QB64 is your best friend:Give it a try!

runif

Idempotent and minimal python 3 library for rapid scripting. Provide support for creating file, adding data to them, patching and so on. Why? (Ba)sh scripting is very easy to setup. So we end up using it all the time for simple procedural script. Sometimes is it useful to have idempotent script, like Ansible and Saltstack …

runif Read More »

Mail Server on Docker (UPDATED)

Hosting your own email server is not a mandatory task; it increase your attack surface too. But relaying too much on big emails provider (Gmail, Outlook, Aruba, Fastmail) could be a risk for our democracy. For instance, who decide how Spam is managed (i.e. what could be a Spam email)? Can we trust big providers? Email …

Mail Server on Docker (UPDATED) Read More »

Pybash

The project has been renamed into “runif”. This page left only for Google Search happiness. Pybash is a python library to make python script as easy as in Bourne Again Shell (Bash). Bash scripting is very easy to setup. So we end up using it all the time for simple procedural script. Sometimes is it …

Pybash Read More »

Git History Squash for fun and profit

Suppose you are developing a boring Jenkins pipline (like Jenkinsfile-s) with no time at all. You are forced to commit and then run the jenkins pipeline. Jenkins download the code from your LOCAL repository. To avoid commit& push roundtrip you are using the simple git daemon command to expose your local repository to jenkins. So …

Git History Squash for fun and profit Read More »

Avoid Kafka if unsure (think twice series)

Some co-workers started using Apache Kafka con a bunch of our Customers. Apache Kafka is a community distributed event streaming platform capable of handling trillions of events a day. Initially conceived as a messaging queue, Kafka is based on an abstraction of a distributed commit log[*]. To get this goal, Apache Kafka needs a complex …

Avoid Kafka if unsure (think twice series) Read More »

Docker tips

Use docker in docker to drive docker from a container Working under windows, sometimes docker slow down. Sometimes you need to access to the MobyVM. With this line: docker run --rm -ti -v "/var/run/docker.sock:/var/run/docker.sock" -v /:/host docker sh you run a container which will removed upon exit. This container can access to docker daemon (via …

Docker tips Read More »