clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

Append and prepend elements with pure JavaScript

Adding element after and before other elements in the DOM, also known as appending or prepending. Pure JavaScript provides some handy…

Protect a directory or a domain with a password on NGINX server

If you have a log in page or a private service that only you use, it’s to put a password on it. 2015.05.02 — Added better WordPress related…

Git: removing files from the staging area and the tree

Removing stuff with git: just remove any file, remove files from the staging area, how to remove files that were not supposed to be added…

Sync large quantities of files or directories between local machine and server with rsync

A guide to syncing files between local and remote with rsync. rsync is an awesome command! It's designed to effortlessly move large…

How to install the latest version of Git on an Ubuntu box

Here’s a short memo on how to tell apt-get about a new Git version. Install or update via apt-get Check if Git is installed and what version…

Check if string starts with, or ends with another string, using JavaScript

This post outlines all the ways we can check if a string starts with or ends with another string, also in case insensitive way. In…

Optional parameter handling in JavaScript functions

This post looks into handling of default function parameter values. ES5 JavaScript doesn’t have a built-in way to handle default parameters…

Git: deleted a bunch of files accidentally, how to get them back?

You know the the sinking feeling when you accidentally wiped out half of the repo with a harmless looking rm -rf . No worried though, there…

Enhance WordPress page speed: load static assets from a cookie-less subdomain

Speed up page load time by parallelising image loading and setting up a cookieless subdomain or a whole new domain. WordPress attaches a…

How to use secure copy to copy files from local machine to a remote, and tab complete the remote server directories

The classic method is to use Cyberduck (or other sftp client) for moving a files to a server. But the scp bash command let’s you do all…

  • © 2021 Antti Hiljá
  • About
  • Follow me in Twatter → @hiljaa
  • All rights reserved yadda yadda.
  • I can put just about anything here, no one reads the footer anyways.
  • console.log('Smash the patriarchy!')
  • I love u!