-
Open the Terminal
-
Use
mysqldumpto backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql -
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AllCops: | |
| RunRailsCops: true | |
| # Commonly used screens these days easily fit more than 80 characters. | |
| Metrics/LineLength: | |
| Max: 120 | |
| # Too short methods lead to extraction of single-use methods, which can make | |
| # the code easier to read (by naming things), but can also clutter the class | |
| Metrics/MethodLength: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Gulp 4 | |
| var gulp = require('gulp'); | |
| var using = require('gulp-using'); | |
| var grep = require('gulp-grep'); | |
| var changed = require('gulp-changed'); | |
| var del = require('del'); | |
| var coffee = require('gulp-coffee'); | |
| var less = require('gulp-less'); | |
| var coffeelint = require('gulp-coffeelint'); | |
| var sourcemaps = require('gulp-sourcemaps'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set realname = "Scott Burlington" | |
| set from = "scott@burlresearch.com" | |
| set imap_user = "scott@burlresearch.com" | |
| set imap_pass = "XXX" | |
| set smtp_url = "smtp://scott@burlresearch.com@smtp.gmail.com:587/" | |
| set smtp_pass = "XXX" | |
| set folder = imaps://imap.gmail.com/ | |
| set spoolfile = "+INBOX" | |
| set postponed = "+[Gmail]/Drafts" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| install: --no-document # See http://guides.rubygems.org/command-reference/#gem-install | |
| update: --no-document # See http://guides.rubygems.org/command-reference/#gem-update | |
| :backtrace: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe vs. context in rspec | |
| http://lmws.net/describe-vs-context-in-rspec | |
| In Rspec world, you often see people using both “describe” blocks and “context” blocks together, like this | |
| describe "launch the rocket" do | |
| context "all ready" do | |
| end | |
| context "not ready" do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'https://rubygems.org' | |
| gemfiles = [ 'Gemfile1', 'Gemfile2' ] | |
| gemfiles.each do |gemfile| | |
| instance_eval File.read(gemfile) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <input id="avatar" type="file" name="avatar" /> | |
| <button id="upload" value="Upload" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def paginate(scope, default_per_page = 20) | |
| collection = scope.page(params[:page]).per((params[:per_page] || default_per_page).to_i) | |
| current, total, per_page = collection.current_page, collection.num_pages, collection.limit_value | |
| return [{ | |
| pagination: { | |
| current: current, | |
| previous: (current > 1 ? (current - 1) : nil), | |
| next: (current == total ? nil : (current + 1)), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /********************************************************************************** | |
| Project Name: | |
| Project Description: | |
| File Name: | |
| Author: | |
| Author URI: | |
| Version: | |
| **********************************************************************************/ |