Skip to content

Instantly share code, notes, and snippets.

View oleksanderkorn's full-sized avatar
🏠
Working from home

Oleksandr Korniienko oleksanderkorn

🏠
Working from home
  • Hilversum, Netherlands
View GitHub Profile
@oleksanderkorn
oleksanderkorn / git-aliases.md
Created September 28, 2020 09:59 — forked from mwhite/git-aliases.md
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc
@oleksanderkorn
oleksanderkorn / scala-cheat-sheet.md
Created April 4, 2019 13:34 — forked from jaturken/gist:3976117
Scala features cheatsheet

Cheat Sheet

This cheat sheet originated from the forum, credits to Laurent Poulain. We copied it and changed or added a few things.

Evaluation Rules

  • Call by value: evaluates the function arguments before calling the function
  • Call by name: evaluates the function first, and then evaluates the arguments if need be

Multiple MySQL Versions with Homebrew

For homebrew version 0.9.5.

brew -v # => Homebrew 0.9.5

Install the current version of mysql.

# Install current mysql version

brew install mysql