RSSAmplifier

Blog

Piraces Blog

Personal blog about Software development and tech related things

piraces.devRSS feed ↗17 posts

Latest posts

Take ownership of your Twitter data, set-up your own Twitter updated archive in GitHub

Cover image generated by DALL-E 2 ("3D render of several tweets in a man hands on a dark blue background, digital art") Due to the "recent" acquisition of Twitter and all changes that came after that, lots of users started considering other alternatives such as Mastodon , Tumblr , Nostr and many others... But what happens to the generated data over the years we have been making in this platform,…

How to use the Google One Tap solution in your webapp to authenticate users

If you are reading this, I think it is a very high chance that you have already seen one of the components shown in the image above. Some popular sites like Quora , have implemented this "Google One Tap experience" and also the traditional "Sign-in with Google" button . Maybe you are wondering how does it work or how they have implemented this experience, so I am going to explain this in this…

Improving your code for style, quality, maintainability, design... with Roslyn Analyzers

Roslyn Analyzers analyze your code for style, quality and maintainability, design and other issues. I stumbled upon Roslyn Analyzers while contributing to an issue to the Microsoft Bicep repository , where I found a BannedSymbols.txt file where it appeared that System.Console.Write and System.Console.WriteLine where being targeted and pointing to not use them for logging purposes. That triggered…

Project Bicep, the new ARM DSL from Microsoft

Project Bicep logo Bicep is a new DSL (Domain Specific Language) for deploying Azure resources in a declarative way. It aims to simplify the experience we are currently having with ARM templates for deploying Azure resources, with a cleaner syntax, modularity and re-usability. It provides a transparent abstraction over ARM templates (we know ARM templates are not the easiest to author), all the…

Awesome console apps in C#

An example fancy application using the Spectre.Console library This post is part of C# Advent Calendar 2020 . It has been a while and console apps are still a thing (maybe more used by developers), but they are used everyday. For example, as a developer, I use npm or dotnet command line programs to do neccessary tasks in my job or in my free time experimenting. These type of tools have been since…

Performing static code analysis of your Kubernetes object definitions with a Github Action

Nowadays, Kubernetes is one of the most popular and loved platforms used by the community, to run and orchestrate container workloads. It is present in several open-source and private projects as the base of its infrastructure. They trust to use Kubernetes as a platform. The problem The world of Kubernetes can be sometimes very complex and if we make use of it, we need to ensure we are doing it…

Getting notified on the latest releases of your day-to-day tech stack

Get notified on the latest release and keep yourself up-to-date! Nowadays there are lots of technologies and dependencies involved in our day-to-day projects, therefore making it more difficult to know them all and to track their changes. New releases of tools, software, and software development related technologies happen almost every day. This can sometimes be kind of frustrating. You can be…

Automating Docker container base image updates with Watchtower

A process for automating Docker container base image updates In the case you are using Docker for your developments, projects, apps... Normally you use base images to start with. These base images are (normally) frequently updated, and in some cases we are going to want to keep up to date with a tag of a base image. In this cases, Watchtower is a great devops tool that is going to manage this…

Replacing self-hosted agents with ephemeral pipelines agents in Azure DevOps

Schema of sample architecture using ephemeral agents If you have Azure Resources that aren't exposed on the internet but only accessible via a private network, you can't use Microsoft-hosted agents because they can't connect to the private network. Therefore, we need to maintain a pool (or several pools) of self-hosted agents , with the associated costs and effort to maintain that pool(s). In this…

Understanding and managing peer dependencies in your project

Have you ever seen any similar warning to the ones in the image above? That is completely normal. We usually install several libraries alongside our frameworks of choice in our projects. Each library and framework, has its own internal dependencies and other defined as peerDependencies . What are peer dependencies? Well... a good definition can be found in this Stack Overflow answer :…

My way on automated dependency updates

In order to keep my dependencies updated in all my personal projects automatically, I use Dependabot in combination with GitHub Actions , Travis CI and Netlify deploy previews. Let's break into each step/tool of my workflow: Dependabot Dependabot is the responsible of checking for package updates, open new PRs for the updates, and merge them automatically. It has many options in order to adapt it…

The NTP Pool project: How to use and contribute

Introduction The NTP Pool Project is a large virtual farm of servers that offers NTP service for anyone. The project consists of a DNS system that balances the load of millions of queries of time synchronization for devices all across the world (tablets, smartphones, computers, routers...). Also vendors like Ubuntu, use this service for all its clients (it's also commonly used in many other Linux…

Notes on my way to improve my Lighthouse score in my blog

Half a year ago, I started this blog project in an attempt to learn new things, write them, and hopefully provide some people with great content. I started giving a try Github Pages with some Jekyll stater theme, but in a short period I switched to GatsbyJS using the starter theme Lumen because I felt more comfortable with React and It feels like more customizable in my opinion. Also switched the…

Your custom remote development environment: run VS Code on server and access it anywhere

Introduction Visual Studio Code is one of the most used code editors out there, with lots of extensions, integrations, and other functionalities that makes dev's life easier. It's built with Electron and it is primary language it's Typescript, which means that it's almost like a web-app in your computer. This facts gives us the possibility to modify this app and run it on a server. This is what…

Build your own {{insert technology here}}

Hello, I just want to show the community this awesome repo that consists in a series of different tutorials about how to build your own database, git, network stack, shell, docker... and many more! Sure it's worth a ⭐️! Check it out: GitHub link "What I cannot create, I do not understand." ― Richard P. Feynman Happy coding!

FreeDNS - Subdomains for your side projects, demos, aliases...

In my daily life, besides working as a Software developer, I'm always interested into launching new personal/side-projects. I launch simple webs, tools, try new technologies or make utilities for myself. But how to make this projects available on the public internet? Dynamic IPs for public projects? In order to make that developments accesible anywhere I usually go and use No-IP services, which…

Hello world!

Welcome to my new blog! Update 19/09/2020 : I have moved the entire blog to 11ty , using the awesome template google/eleventy-high-performance-blog . Currently is being deployed via Netlify from my Github repo . Check it out! Old blog : It's made with GatsbyJS , using the spectacular theme "Lumen" modified to meet my needs. Currently is being deployed via Netlify from my Github repo . Check it…