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 + x Choose... 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 »

Configure Mailgun on self hosted Ghost blog

Wojtek on mailgun, ghost, email · · Comments · 1 min read

Mailgun is a fantastic, free service which allows you to send, receive and track emails effortlessly. It's dead easy to integrate with your self hosted Ghost blog. Mailgun configuration Log in to your Mailgun account. Go to "Domains" section. Click on "Add New Domain" and add a subdomain you want to send emails from. Follow on... Read more »

Update Raspbian on Raspberry Pi

Wojtek on Raspberry Pi, Raspbian, update · · Comments · 1 min read

It's highly recommended to update your Raspbian as often as possible to make sure you always have the latest security patches and updates. Manual update Open Pi's console and update package list by running the following command: sudo apt update Then upgrade your packages to their latest versions with below command: sudo apt full-upgrade This should keep you up to... Read more »