clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

Remove and add class names from elements using pure JavaScript

CSS class names can be removed or added using the classList method, or they can modified straight with the className property. Using the…

Associative arrays in bash

Here’s my little guide on how to define and access associative arrays in bash. Bash 4 supports associative arrays, yay! Just to recap…

Install and run Vagrant

This post looks at how to install vagrant, and how to initialize a project and install a box. It also lists all needed commands and tricks…

Getting DOM elements with JavaScript

️️ 2015.03.19 I just noticed that any attribute can be queried with querySelectorAll , added that to the article. 2015.04.19 Added a…

Different methods to make DOM elements in jQuery

4 different ways to create HTML element in jQuery. Method # 1, the obvious method Where as the following might be enough a lot of the times…

Detect click with pure JavaScript

Here’s how to handle click events in vanilla JavaScript. This will be one of those note-to-self-posts, as I learn vanilla JavaScript…

Better stat command in OS X

Here’s how to make the stat command more readable. When getting info from a file, like it's access rights and owner, the stat is the goto…

How to create ssh keys and manage multiple keys

How to create ssh keys, how to get them safely to your server, and how to manage multiple keys and make ssh-ing into a machine really easy…

Vim commands

Here’s a comprehensive Vim command cheat cheat. Cursor movement Insert mode - inserting/appending text Editing Marking text (visual mode…

Increase file upload size on PHP/NGINX server

Here's a quick article on how to configure NGINX and PHP to allow really large uploads. You might get a HTTP error in WordPress when trying…

  • © 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.
  • I love u!