Deployment in Rails 3.2.6 / Tinder Capistrano/ActiveSupport
Add
Capistrano::Configuration::Namespaces::Namespace.class_eval do
def capture(*args)
parent.capture *args
end
end
to your deploy.rb file to avoid syntax errors
Related cards:
Format Cucumber Tables in Sublime Text 2 (ST2)
- install https://github.com/drewda/cucumber-sublime2-bundle for general cucumber support in ST2
- follow instructions on https://github.com/mishu91/Sublime-Text-2-Table-Cleaner
Adjust key binding:
{ "keys": ["super+alt+7"], "command": "table...
Install Nokogori on OSX Mountain Lio
Follow the nokogiri installation instructions at http://nokogiri.org/tutorials/installing_nokogiri.html
If you run into compiler issues you may have to link the gcc compiler manually by
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
How to use cucumber together with Sublime Text 2 Editor
Sublime Text 2 doesn't have out of the box support for cucumber and package control doesn't provide anything.
Adding support to run tests from within sublime text 2: [RubyText Package](https://...
Remove Trailing Spaces on Save in Sublime Text 2
Ever wondered how to get rid of the trailing spaces?
just add this to your user settings ( cmd + , ):
"trim_trailing_white_space_on_save": true
And every time you save a file Sublime will trim all the trailing spaces for you.
If you hav...
Check if HTML elements are in view.
JS Utility that triggers an event when an HTML element is scrolled in to the viewport.
discover large files in git repository
find large files in the history of a git repository (to remove them later)
see also:
Remove large files from git repository
Remove large files from git repository
remove (large) files from a git repository. this is either for large files or for ones containing sensitive data.
also see:
[discover large files in git repository](https://makandracards.com/ninjaconcept/9763-discover-large-files-in-git-repositor...
Reset mysql root password
Start mysql in safe mode: sudo mysqld_safe --skip-grant-tables
Connect to mysql
database with mysql mysql
Reset password with Update user Password = PASSWORD('root') where User = 'root' and HOST = 'loalhost';
Fixing "SocketError: getaddrinfo: Name or service not known" with Ruby's resolv-replace.rb
we had the same error and google helped us find the linked solution.
Just require "resolv-replace.rb"
during app startup and all should be good.
Further information:
- https://www.omniref.com/ruby/2.1.1/symbols/Resolv
- https://rubygems.org/g...