Custom linting rules in NuxtJS and eslint

Wojtek on nuxtjs, vuejs, eslint · · 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-get update Then upgrade your packages to their latest versions with below command: sudo apt-get dist-upgrade This should keep you up to... Read more »

Create NodeJS command line script or app

Wojtek on nodejs, shell, JavaScript, script · · Comments · 1 min read

I wanted to write a simple script that would convert multiple files from one encoding to another. I didn't want anything big or running in the browser. Command line script seemed like the right approach. Coming from a web developer background my first thought was a script written in PHP and converted to a command line app. Just saying that... Read more »

Add reCAPTCHA to NodeJS and ExpressJS app with AJAX form

Wojtek on reCAPTCHA, nodejs, expressjs, Google · · Comments · 3 min read

Google's reCAPTCHA is great for getting rid of those pesky bots spamming your contact forms. Implementing reCAPTCHA on your site is very easy, albeit somewhat confusing if you try to follow official documentation. Below example assumes you're using NodeJS with ExpressJS for back-end and Pug (formerly Jade) templating engine on the front-end. General principle is the same regardless of languages... Read more »

Enable VNC (virtual desktop) on Raspberry Pi

Wojtek on Raspberry Pi, VNC · · Comments · 1 min read

Featured image

Using command line If command line is not your cup of tea and you need graphical interface, Raspbian has just the thing for you. ssh to your Raspberry, (follow my guide here, if you need to set up ssh access as well), Run commandsudo raspi-config Select Interfacing Options, Select VNC, Select Yes. VNC should be active now. You can use... Read more »

Set up WiFi on Raspberry Pi via command line

Wojtek on Raspberry Pi, ssh, WiFi · · Comments · 1 min read

Featured image

Below method is useful if you don't have access to Raspbian's graphical interface. You don't need to install any additional software, everything is available out of the box and can be done in a few simple steps: ssh to your Raspberry, (follow my guide here, if you need to set up ssh access as well), Run commandsudo raspi-config Select Network... Read more »