Posts categorized as tools
Sign git commits on GitHub with GPG in macOS
📆2021-01-18🍱tools
When you are pushing commits to your repositories you are authenticating with either HTTPS or SSH. Telling GitHub that it is really you. That only ensures that it's the correct user doing the pushing. You could also add an extra level of…
Enable Keyboard Setup Assistant if Change keyboard type is hidden
📆2021-01-10🍱tools
When plugging in a new keyboard to the Mac you need to set what kind of layout it has if not detected automatically. The Keyboard Setup Assistant usually pops up the first time you plug the keyboard in and you can choose if it's ISO or…
Access private submodules in GitHub Actions
📆2020-07-09🍱tools
Using submodules can be a simple solution to make some parts of a public repo private. For example I have separated the actual content of this blog to a private repo. Not because it's something secret (you are reading it now anyway) but it…
Upgrade all dependency versions in package.json with yarn
📆2020-06-23🍱tools
Updating dependencies in an npm project is pretty straight forward and easy to do with the command yarn upgrade . It updates all packages to their latest backwards-compatible version. Something that those coming from using npm update…
Automate versioning and publication of npm packages
📆2020-06-06🍱tools
A while ago I wrote a post about always writing perfect commit messages by using commit linting tools and conventional templates. This makes the commit messages look great and formatted the same way regardless of who is committing but…
Manage plugins natively in vim
📆2020-03-04🍱tools
There are many useful plugins for vim and I've always used a plugin manager to handle them all. Recently I found out that vim has had support for package management out of the box a long time now. It was actually really simple to switch…
Difference between dependencies, devDependencies and peerDependencies in npm
📆2019-09-30🍱tools
When creating a new npm project, all those with a package.json in the root directory, we usually don't create everything from scratch but need some dependencies. There are different type of dependencies that can be somewhat difficult to…
Update nvm installed node version and keep globally installed packages
📆2019-07-01🍱tools
Node Version Manager is great for managing and working with different node versions but can be a little tricky to update to a newer version the first times. Especially if you want to keep all the globally installed packages. It’s actually…
Different git config for different projects or clients
📆2019-05-20🍱tools
If only working on projects with one single git service you won’t have a problem with email addresses differ between accounts. All your commits will always use the same information. But say you are using one service for private projects…
Always write perfect commit messages with Git Commitizen and Husky
📆2019-05-13🍱tools
We’ve all been there, looking at a function and don’t understand a thing of what it does. The next step is of course look at the commit message, the git blame. That will explain everything for us. Or will it? We open it up and we see this…
Make a TypeScript Node server hot reload on changes with Nodemon
📆2019-04-10🍱tools
When building a front-end app today it is common to have the app hot reloading in the browser every time you make a change. This can also be done for your back-end app built with Node by using a package called Nodemon. This app watches all…
Keeping a forked repository up to date with the original repository
📆2019-01-26🍱tools
If you fork an existing git repository and add that fork to your own repositories it will not be in sync automatically with the original repo. That could of course be a good thing if you want to develop the project in your own direction…
Working with multiple git services simultaneously
📆2019-01-20🍱tools
If you have your git repositories spread across multiple git services, like GitHub for work and GitLab for personal, you can run into problems with your git credentials. Especially if you are using different email addresses, such as the…
Generate and organize SSH keys on Mac
📆2018-11-08🍱tools
If you've never heard about SSH keys and are still using passwords when logging in to your remote servers you're in for a treat. Or maybe you already know about SSH keys but aren't organizing them in a good way. Anyway this post will make…