Blog

Fix NPM No Such File Error on WSL2 Janne Kemppainen |

I was working on a Node.js project and decided to run it on top of Windows Subsystem for Linux but it just wouldn’t work. The npm command would fail with a “no such file or directory error” like this:

Get docker-compose Working on Raspberry Pi Janne Kemppainen |

I was setting up Docker on my Raspberry Pi since I wanted to run Home Assistant on top of it. I wanted to use docker-compose to manage the container, but the installation was not successful.

Cancel a Git Commit Janne Kemppainen |

Did you commit and push something that you didn’t intend to? Don’t worry, it’s quite simple to fix!

What ChatOps Solutions Should You Use Today? Janne Kemppainen |

Over the years we have seen many tools that enable communication with computer systems using a chat interface. Many of them are now obsolete as their development has ceased, though they still seem to be recommended everywhere. What are the tools that you should use today?

Use Inquirer.js to Create a Conversational CLI User Interface Janne Kemppainen |

Your CLI apps don’t have to be boring. Especially when there are plenty of possible configuration options, and the program is not going to be executed from a script, it might be better to provide a conversational user experience.

Should You Switch to Colemak? Janne Kemppainen |

You may have been pondering with the idea of switching away from QWERTY to a superior keyboard layout such as Colemak or Dvorak. But is it worth the trouble, especially if you’re a programmer?

Create GitHub Actions Workflows with a CLI App Janne Kemppainen |

GitHub Actions workflows are defined as YAML files that can contain various configurations. Sometimes it can be difficult to remember all the available options. That’s why I created a handy little tool called Actions Workflow!

Write a Bash Command That Fails Randomly Janne Kemppainen |

Usually you want the commands that you run to succeed. Though sometimes it might be useful to make them fail randomly for test purposes.

Run Selected Python Unit Tests from the Command Line Janne Kemppainen |

It doesn’t always make sense to run the full suite of tests when you’re developing a part of a program. So how can you run only a portion of your Python unit tests on the command line?

Make an NPM Package Executable with npx Janne Kemppainen |

You may have used the create-react-app package and thought that you’d like to make your own NPM package work in the same way with npx. It’s actually quite easy.

Add Videos to a GitHub Repo Readme Janne Kemppainen |

When you create something cool and interactive what better way is there to demonstrate it than through video?

Configure Nextcloud Behind a Cloudflare Tunnel Janne Kemppainen |

When you set up a private Nextcloud installation on your home server and want to have it accessible from the outside network you traditionally need to poke a hole in your NAT and set up dynamic DNS to be able to find the correct IP every time. With Cloudflare Tunnel you can connect to your server without ever exposing your IP address to the world.