Home / Programming / Page 2
Programming
Fully Automated Github Workflow for Home Assistant components
This article contains a sample Github Workflow for Home Assistant components. This can be used to create versioned releases, add a changelog, create Git tags and Github Release for HACS....
Sequelize not playing nice? Your sequences are to blame.
After a database restore/refresh using Sequelize seeds I had problems with UniqueViolation and primary keys. Guess what... sequences are to blame....
Sequelize throws SequelizeDatabaseError when using JavaScript Dates
ran into this problem where Sequelize would not accept the date generated by Javascript's new Date() function when using greater than operator ($gt, $lt)....
Creating a dockerized Gitlab Runner with Docker Compose
Quick post to show my configuration. I gave up saving docker run commands a long time ago. All docker-compose configuration is checked into git....
Running NodeJs applications in Production using PM2
I discovered Process Manager 2 (pm2) which I am using to run my Nodejs applications in production. This post details how I set this up, including Docker image build and docker-compose configuration. PM2 includes load...
How to bulk rename Bitbucket Repos (Quick and dirty)
I have a ton of old code on my dorment Bitbucket account and I have to move all my new code onto Bitbucket because I am decommisioning my personal Gitlab server. (too risky to self-host...
Firebase Caching Configuration for Development (and Production)
It was difficult to find a working firebase.json file that offers caching settings suitable for rapid development and deployments. The file included in this post works well with react-boilerplate and can be adopted easily....
Solving Uncaught TypeError: n is not a function
I found the root cause by backtracking the commits I made in Git. The error only happened in Production environment which led me to believe there was something in the Babel/Webpack configuration for production optimisation...
How to automate releases in Gitlab using Standard Version and NPM
This post shows how to set up automated, tagged, semantically-versioned releases, changelog generation, and CI testing using a Gitlab pipeline, Standard Version and Conventional Commits....
Script to run custom Powershell commands on file changes
In writing Home Assistant components, I found it useful to restart a lightweight Home Assistant server on file changes to the Python component under development....