All

Latest

System Administration

Latest

Cloud Computing

Latest

Rails, Ruby

Latest

Ruby Methods Basics

Methods are great for DRYing up your code and organizing logic in a single place. They act a little bit like a black box. Here are some tidbits that might not be so obvious with Ruby methods. All methods have to be called on an...

MySQL / Percona

Latest

How to Revert/Undo Changes in Git

Generally there are three ways of reverting changes: checkout revert reset Checkout If you just need to revert specific files, you could run git checkout to retrieve an exact version. In the below example, I wanted to revert the...

Read More

rails console hangs

“rails c” hangs with no error messages and no response. solution: stop spring using the following command “spring stop” or “bin/spring stop” spring will automatically start back up when you...

Read More

Git Best Practices

Commit often All is not Lost git log -g git fsck –unreachable git stash list Backups Although a clone is a backup it does not include git configs, working directory/index, non-standard refs, or dangling objects. Once you...

Read More

Git Relative Refs

You could use relative refs to move branches around. e.g.,  git branch -f master HEAD~3, etc.  The “^” Operator Goes up to the first parent. e.g., git checkout master^ The “~[integer]” Operator The...

Read More

Git Tools

git rebase This allows you to copy commits/branch to another commit/branch directly. You’re taking all the changes that were committed on a branch and replaying it on another. This creates a nice linear sequence of commits...

Read More

A Git Primer – Under the Hood

These notes assume you’re familiar with the basic functions of Git. The Git repository exists entirely in a single “.git” directory in your project root. Objects in Git are identified by hashes. Blobs –...

Read More
Loading