TL;DR
sudo pg_dropcluster 9.4 main --stop
sudo pg_upgradecluster 9.3 main
sudo pg_dropcluster 9.3 main| (defn optify | |
| "Helper that examines paths with the supplied prefix and either subs | |
| in their cache-busting URLs or returns them unchanged." | |
| [req prefix] | |
| (fn [^String src] | |
| (or (and (.startsWith src prefix) | |
| (not-empty (link/file-path req src))) | |
| src))) | |
| Check out README.md to get started editing Clojure with Emacs. |
| #!/usr/bin/env ruby -w | |
| # brew-services(1) - Easily start and stop formulas via launchctl | |
| # =============================================================== | |
| # | |
| # ## SYNOPSIS | |
| # | |
| # [<sudo>] `brew services` `list`<br> | |
| # [<sudo>] `brew services` `restart` <formula><br> | |
| # [<sudo>] `brew services` `start` <formula> [<plist>]<br> |
| # app/models/email_blacklist_domain.rb | |
| class EmailBlacklistDomain < ActiveRecord::Base | |
| validates :value, presence: true, uniqueness: { case_sensitive: false } | |
| end |
| diff --git a/config/boot.rb b/config/boot.rb | |
| index 69b1a51..2c979cf 100644 | |
| --- a/config/boot.rb | |
| +++ b/config/boot.rb | |
| @@ -61,12 +61,30 @@ module Rails | |
| require 'initializer' | |
| end | |
| + def monkeypatch_helpers | |
| + require "active_support" |
TL;DR
sudo pg_dropcluster 9.4 main --stop
sudo pg_upgradecluster 9.3 main
sudo pg_dropcluster 9.3 main| # Run this file by placing it in your Rails application's script directory. | |
| # Then you invoke it with: | |
| # | |
| # rails runner script/cards.rb | |
| # | |
| # Or if you are running Zeus: | |
| # | |
| # zeus runner script/cards.rb | |
| require "rubygems" |
| ;; Code folding | |
| (add-hook 'ruby-mode-hook | |
| (lambda () (hs-minor-mode))) | |
| (eval-after-load "hideshow" | |
| '(add-to-list 'hs-special-modes-alist | |
| `(ruby-mode | |
| ,(rx (or "def" "class" "module" "do" "{" "[")) ; Block start | |
| ,(rx (or "}" "]" "end")) ; Block end | |
| ,(rx (or "#" "=begin")) ; Comment start |