MarcoPeg.com

When it comes to write code you don't need to learn magic spells.
All you need is to take a look outside the window and solve your problem
with patterns from the real world, where you come from.

-- Then you code --
Marco Pegoraro

Marco Pegoraro

How to optimize Postgres for `SELECT COUNT(*)` on massive tables

The short answer is: “indexes”.
But you can read the rest of the story in the full article 🙂

Marco Pegoraro

WP Admin proxy for NGINX

How to proxy wp-admin in a headless wordpress setup

Marco Pegoraro

Apple – Security for travellers sucks

Did you know that you can’t print any recovery code for your AppleID account? The more you protect it, the more is likely you loose control over it. And do you travel a lot? Then you’d better read this!

31 March 2017
to write code and to write an app are two different things
Marco Pegoraro

WordPress on Thin Air

This very website is hosted on a 512Mb Ram Digital Ocean droplet and is still able to serve an benchmarked 252 pages per second with 50 concurrent requests being made, wanna achieve the same result?

Marco Pegoraro

Make > Grunt > Gulp > NPM > Taskfile?

It looks like my friend @camme found the next step in task managers evolution: hackernoon.com/introducing-the-taskfile It’s nice and neat and it brings us back to our roots… BASH! Yes, why not? I have started digging back into BASH a couple of months ago with my Humble CLI project. I confess sometimes BASH drives me crazy […]

Marco Pegoraro

Docker Stats with Containers Names

There is a way to get container’s names out of `docker stats`, and Docker Humble makes it ridicolously easy for you.

Marco Pegoraro

Ordered List

Let’s use an Ordered List to add a list of your favourite foods.

Marco Pegoraro

Unordered List

Let’s use an Unordered List to add a list of hobbies to your page

Marco Pegoraro

Where to set the knowledge bar?

Are you aware how much your knowledge expansion affects your salary growth?

Marco Pegoraro

Facebook Profile Picture

In this session you are going to add your Facebook Profile Image to your project.

Marco Pegoraro

Hello World

In this session you are going to use CodePen to create an online web project.

Marco Pegoraro

What is it like to be a Junior Developer?

It’s the magic moment in which you realise you can use your knowledge to make some money.

24 November 2016
Wow, posts format works pretty fine with my theme :-)
Marco Pegoraro

Shades Of Consultancy

Today I want to **share with you some personal thoughts** about the many stages of “_being a consultant_” that I have been through.

Marco Pegoraro

Dockerized MySQL Crashes a Lot!

Have you ever experienced a dockerized MySQL to stuck in low memory VPS? I did and luckily I found a solution! (yes, I googled it)

Marco Pegoraro

HumbleCLI 1.0 was released today!

This was one of those days… Anyway we rolled out what we hope is an API-stable first release of HumbleCLI. What does it mean API-stable anyway? Well, it is difficult to roll out a super stable project working in 1.5 guys of 0.10% of the time (basically working on it overnight). That means we know […]

Marco Pegoraro

In & Out – A file based protocol

Yesterday I begun to work on an rest API for my Humble Server project. The general idea is to be able to start/stop Docker Humble apps as well as backup/restore or investigate informations on the running services with a point ‘n’ click interface. Do you remember CPanel? Well I’m going to do a similar product […]

Marco Pegoraro

Docker Tags Matter

Did you know that Docker will not automatically update your local images to the :latest tag? Now that I think about it it seems quite reasonable to me. If Docker had to check up whether your local :latest tag corresponds to the hub’s one it would make an http request for each image in your […]

Marco Pegoraro

And so WordPress…

Why have I moved my personal blog from a static web page generetator to a Wordpress website?

Marco Pegoraro

The Holy Grail of Code Sharing

Code sharing is a concept which is whispered in low tone around the office, is being shouted loud by tools producers and is simply misunderstood by the great part of us, IT folks. Management people wish every single line of code to be shared and 100% reusable, they see only one single fact: less code […]

Marco Pegoraro

Sleep tight and have an happy Life!

Backups are strange animals. In a perfect world you don’t need backups. You put efforts in building a solid backup strategy, you buy external drives, cloud storage and amazing software which you wish you never have to use in life. So what? Why am I wasting all those efforts? Why do I live with a […]

Marco Pegoraro

You’d better Test to save some Rest

Since the day I became a developer, I’ve always feared the Big What The Fuck. The BWTF is not only related to the code you write, it is the lack of knowledge that threatens to crush your entire project. It can be as simple as a server misconfiguration that causes a gaping security flaw. When […]

Marco Pegoraro

The Curse of the Proud Developer

The sky was turning dark when I saw the first Internal Server Error (code 500). It was 5PM in the winter’s afternoon and we were close to the release deadline. My heart missed at least two beats while my mouse ran to the reload button: “It may be just a network error, I thought”. But […]