Dealing with new .kube/config

Video: https://youtu.be/oBF-dUXZwrA Once you get a new config from a remote kubernetes installation you need to integrate it to existing local .kube/config file. Sometime, you or others, are doing experiments with kubernetes, so repeat the .kube/config integration steps over and over again, dealing with -data blobs List of ingredients Getting the scripts Retrieve the scripts […]

Read More…

ssh over https

By the mean of a reverse proxy installed on a Proxmox machine, is possible to expose also ssh access to the single machine. List of ingredients Preparing The Server To generate an self signed certificate, use the command: In /etc/nginx/nginx.conf add these lines: Preparing The Client Copying minihost.crt in The Client from The Server by: […]

Read More…

Scraping HTML page by DOM and XPath

I decided to release this code snip, just a PHP class, for extracting data from an HTML page. The code is in https://github.com/danielecr/verygrabber and the packagist can be installed by composer install smartango/verygrabber rif. https://packagist.org/packages/smartango/verygrabber This is an old snippet to define a grabber by XPath deploying the recursive nature of DOM (Document Object Model) […]

Read More…

My blog does not use cookies

My idea concerns was to limit the maintenance work to the minimum, still being effective. But which alternatives are available? No analytics ✅ Legal Perspective (EU / GDPR / ePrivacy) Not using tracking tools like Google Analytics can indeed help you avoid needing a cookie consent popup, if: 1. You don’t store or access any […]

Read More…

On Software Architetture(s)

Every piece of software written has an architecture. Yes, even a bash script has a (embryonal) architecture: it has input, output, and satisfy some kind of feature (or features). There are a number of viable choice for implementing or adopt an architecture for the code you are going to write. Why is important to know […]

Read More…

I stopped the data flow – on React best practices

Reading the interesting article from Dan Abramov:https://overreacted.io/writing-resilient-components/ I stopped at memoization. I did not know this technic before, but simply because nobody care so much about names before functional programming. And so I discovered how large is the cover of react hooks, useMemo() that does https://github.com/alexreardon/memoize-one In a cleaner way with the hook, in my […]

Read More…

git-merge: the github conference (Microsoft 2019)

Remembering those nice days in Brussels, where I visit le Grand Platz, having good lamb’s meals, visiting Van Gongh – The immersive experience, Atomium (my video). But mostly I attended the conference on github, updating my skills on managing code base, contribute code, sending PR, rollback error, inspecting … The conference happened in South of […]

Read More…