Tab complete Git commands and branches
Here’s a quick post on the awesomeness of tab completion, and how it can be applied to Git commands and branch names.
jQuery's .closest() function, and pure JavaScript alternatives
Here’s a boil-down on the jQuery’s `.closest()` method and 2 native JavaScript alternatives.
Append and prepend elements with pure JavaScript
Adding an element after or before another element in the DOM is called appending or prepending. Pure JavaScript provides some handy methods for both.
Protect a directory or a domain with a password on NGINX server
If you have a login form that you don’t want people accessing, or other private service, it’s good to block access to it.
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, and how to remove everything.
Sync large quantities of files or directories between local machine and server with rsync
A guide to syncing files between local and remote environment with rsync.
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.
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 ECMAScript 6 Harmony there will be `startsWith` and `endsWith` methods. Here’s how to use those and how to polyfill it.
Optional parameter handling in JavaScript functions
This post looks into handling of default function parameter values.
Git: deleted a bunch of files accidentally, how to get them back?
You know the sinking feeling when you accidentally wipe out half of the repo with a harmless-looking `rm -rf`. Don't worry, though. There’s a good chance of getting it back.