Skip to content

Instantly share code, notes, and snippets.

View rposborne's full-sized avatar
💭
🍁

Russell Osborne rposborne

💭
🍁
View GitHub Profile
@webdev1001
webdev1001 / gist:e848abef8064c55c2f6443a282f75651
Last active February 18, 2021 21:51
Array values in the parameter to `Gem.paths=` are deprecated.
Array values in the parameter to `Gem.paths=` are deprecated.
Please use a String or nil.
An Array (...) was passed in from bin/rails:3:in `load'
Solution
========
https://github.com/rubygems/rubygems/issues/1551
If you came to this issue by googling the error specified in the description of this issue, you should know that it has already been fixed in spring-1.6.4 and all you need to do is to update to latest spring and regenerate binstubs, like this:
@mbreit
mbreit / *scratch*.el
Created November 27, 2014 14:11
Emacs: haml-lint checker for flycheck
(flycheck-def-config-file-var flycheck-haml-lintrc haml-lint ".haml-lint.yml"
:safe #'stringp)
(flycheck-define-checker haml-lint
"A haml-lint syntax checker"
:command ("haml-lint"
(config-file "--config" flycheck-haml-lintrc)
source)
:error-patterns
((warning line-start
@sj26
sj26 / wysihtml5_helper.rb
Created May 28, 2012 06:32
Helper for capybara to fill in wysihtml5 fields respecting `within` scopes
module Wysihtml5Helper
def fill_in_html name, options
options.to_options!.assert_valid_keys :with
if Capybara.current_driver == Capybara.javascript_driver
# Dip inside capybara session to respect current `within` scope
scope = page.send(:current_node).path
# Find the textarea based on label name within the given scope
query = "$('label:contains(#{name.inspect}) ~ textarea:eq(0)', document.evaluate(#{scope.inspect}, document).iterateNext())"
# Make sure the editor is instantiated -- this is us, not wysihtml5
wait_until { page.evaluate_script("!!#{query}.data('editor')") }
@pzol
pzol / install_ruby192_freebsd.sh
Created December 18, 2010 23:24
How to install rvm 1.9.2 under FreeBSD - this is work in progress and not complete. You have to su or sudo -i to run this
# this does not run as a complete script :(
pkg_add -r bash curl sudo
pkg_add -r git vim # can you live without it?
pkg_add -r libxml2 libxslt # for nokogiri later
pw usermod pzol -G wheel
bash # start bash and run the rest inside it
curl -# -L http://bit.ly/rvm-install-system-wide > rvm-install-system-wide
bash -l < rvm-install-system-wide
ja:
errors:
messages:
not_found: "は見つかりませんでした"
# not_found: "not found"
already_confirmed: "は既に登録済みです"
# already_confirmed: "was already confirmed"
not_locked: "は凍結されていません"
# not_locked: "was not locked"