Add, remove, and toggle CSS classes with JavaScript
Use the `classList` API to add, remove, toggle, check, or replace CSS classes on an element. Unlike string manipulation, it handles whitespace and duplicate classes for you.
Associative arrays in Bash
An associative array stores values under text keys instead of numbered positions. Bash 4.0 and newer support them.
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 to get started on local developing goodness.
Getting DOM elements with JavaScript
How to target elements with JavaScript.
Different methods to make DOM elements in jQuery
Four different ways to create an HTML element in jQuery.
Detect click with pure JavaScript
Here’s how to handle click events in vanilla JavaScript.
Better stat command in OS X
Here’s how to make the stat command more readable.
How to create SSH keys and manage multiple keys
How to create SSH keys, copy them safely to a server, and configure a different key for each server or Git hosting account.
Vim commands
Here’s a comprehensive Vim command cheat cheat.
Increase file upload size on PHP/NGINX server
Here's a quick guide to configuring NGINX and PHP to allow large uploads.