Knowledgebase

The Knowlege base arranges tips and userful informations scattered on the web.

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 »

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 »

isync: free IMAP and MailDir mailbox synchronizer

isync: free IMAP and MailDir mailbox synchronizerisync is a command line application which synchronizes mailboxes; currently Maildir and IMAP4 mailboxes are supported. New messages, message deletions and flag changes can be propagated both ways. isync is suitable for use in IMAP-disconnected mode.Synchronization is based on unique message identifiers (UIDs), so no identification conflicts can occur …

isync: free IMAP and MailDir mailbox synchronizer Read More »

Fail2Ban

On these days I decided to tune a bit my new shiny linux server box. I started to set up fail2ban. I think fail2ban is very imporant nowadays because it is a good example of a tool for slowing down attacks without closing your server too much. Fail2ban is a daemon: it wll monitor your …

Fail2Ban Read More »