Network-attached storage (NAS) on local network with Raspberry PI

Wojtek on Raspberry Pi, bash, nas, usb, drive, Raspberry Pi OS · · Comments · 6 min read

Do you have a few old external USB drives lying around collecting dust? Well, you could put them to good use with a simple and robust NAS (Network-attached storage) using a Rasberry Pi. Moreover, if you have plenty of old travel photos on that external drive, you could host my open source NodeJS app (GitHub repo here) to display them... Read more »

Configure local website on WSL2 with PHP and nginx

Wojtek on WSL, nginx, PHP, Apache · · Comments · 3 min read

I needed to make some changes to an old PHP (Wordpress) site and wanted to quickly run it locally. I don't actively use PHP anymore therefore I didn't want to install XAMPP or anything big like this. The obvious idea was to use WSL to run the site. First I tried with Apache, but for some reason, despite everything being... Read more »

Install any version of NodeJS and npm on Raspberry Pi

Wojtek on nodejs, Raspberry Pi, npm, Linux · · Comments · 1 min read

Or simply put, easily switch between versions of NodeJS on any Linux based system. There are two most popular Node version managers. One, my personal favourite is n package, the other one is nvm. n For me the easiest way is to use n package. Just install whatever Node version your official distribution ships with. sudo yum install nodejs or,... Read more »

VueJS pass data and methods to child component

Wojtek on vuejs, vue, component, props · · Comments · 1 min read

I couldn't find a clear explanation of how to pass both data and methods from parent component to a child component in VueJS. Remember, there's always more that one way of doing almost anything. Below is just one of those ways. More detailed, albeint no so clear, explanation and all the other ways of passing props can be found in... Read more »

Check laptop battery health on Windows 10

Wojtek on Windows, battery · · Comments · 1 min read

Featured image

It's good practice to occasionally check the health of your laptop battery. There's a very easy way to do so on Windows 10. Of course there are lots of programs that will give you detailed information on your battery, but the built in command will also give you quite nice report. Open command line Press the Windows Key, then just... Read more »

Custom linting rules in NuxtJS and eslint

Wojtek on nuxtjs, vuejs, eslint, chkconfig · · Comments · 1 min read

NuxtJS is a fantastic framework for creating VueJS applications. It comes bundled with Vue Router, Vuex, Vue Server Renderer and many more. All configured for you out of the box. The problem I have with it, it comes with linting options set to force 2 spaces as indentation. I'm a "tab" guy, so making me use spaces for... Read more »