Quantcast
Channel: All your code are belong to us
Browsing latest articles
Browse All 43 View Live

Add reCAPTCHA to NodeJS and ExpressJS app with AJAX form

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...

View Article



Create NodeJS command line script or app

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...

View Article

Update Raspbian on Raspberry Pi

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...

View Article

Configure Mailgun on self hosted Ghost blog

Mailgun is a fantastic, free service which allows you to send, receive and track email effortlessly. It's dead easy to integrate with your self hosted Ghost blog. Mailgun configuration Go to "Domains"...

View Article

Using nginx redirect www to non-www domain

Having your site configured on nginx with server_name example.com www.example.com; is a good thing as it'll allow your visitors to access your site on both example.com and www.example.com, but they'll...

View Article


Prevent image hotlinking / stealing from your site with nginx

Have you noticed other sites hotlinking to your images or other assets? Are they eating up your bandtwitch? Or you just want to proactively prevent that? If so, there's a very easy way to do so with a...

View Article

Custom linting rules in NuxtJS and eslint

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...

View Article

Image may be NSFW.
Clik here to view.

Check laptop battery health on Windows 10

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...

View Article


VueJS pass data and methods to child component

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...

View Article


Install any version of NodeJS and npm on Raspberry Pi

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...

View Article

Upgrade Raspbian from Jessie to Stretch

It's recommended to download a fresh image of Raspbian Stretch from official Raspbian website, but if for whatever reason you don't want to do that, you can still upgrade from Jessie to Stretch. 1....

View Article

Configure local website on WSL2 with PHP and nginx

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....

View Article

Image may be NSFW.
Clik here to view.

Install latest Python version on Raspberry Pi

Recently I wanted to install a certain package on my Raspberry Pi that required Python 3.6 or higher. To my surprise the latest available Python version in the official Raspbian repo was 3.5.3 To...

View Article


Image may be NSFW.
Clik here to view.

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

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...

View Article

How to Install the Latest PHP Version on Windows Subsystem for Linux (WSL)

I needed to locally run a PHP project that required PHP 8. By default only PHP 7.x is available in WSL repository. To upgrade your PHP installation to the latest PHP 8.x version within Windows...

View Article

Browsing latest articles
Browse All 43 View Live




Latest Images