This file contains 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
# Make sure to use RVM latest version | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
# You can check which known versions has RVM (make sure you can see jruby[-1.6.5.1]) | |
rvm list known | |
# To install JRuby 1.6.5.1 | |
rvm install jruby | |
# To start using it (with Ruby 1.9.2 instead of 1.8.7) |
This file contains 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
# This will work together with this jQuery timeago plugin fork: | |
# https://github.com/zheileman/jquery-timeago | |
# Please note the original jQuery timeago plugin use the 'title' to store the timestamp. | |
# This forked version use a 'data-time' attribute to store the timestamp and have | |
# a configurable setting to enable/disable overwriting the title with tag's content. | |
# | |
# $.timeago.settings.overwriteTitle = [true|false] | |
def js_timeago(time, options = {}) | |
css_classes = (options.delete(:class) || "").strip.split | ["timeago"] |
This file contains 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
# List my keys: | |
gpg --list-keys | |
# Search and import a key: | |
gpg --search-keys [email or key ID] | |
# Trust a key | |
gpg --edit-key ID | |
trust | |
5 = I trust ultimately |