Skip to content

Instantly share code, notes, and snippets.

View dimitrovv's full-sized avatar

Ventsislav Dimitrov dimitrovv

View GitHub Profile

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

@dimitrovv
dimitrovv / rm_mysql.md
Created May 3, 2017 09:55 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

brew remove mysql

namespace :retry do
require 'rubygems'
desc 'Retry Resque DirtyExit jobs'
task resque_dirtyexit_jobs: :environment do
redis = Resque.redis
(0...Resque::Failure.count).each do |i|
serialized_job = redis.lindex(:failed, i)
job = Resque.decode(serialized_job)

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream