1. Jul 26th, 2010

    Rounded Corners 256 — Sharpening the saw


    Customizing IRB, 2010 edition. IRB customization with wirble, hirb, awesome_print and a few others choice libraries. What makes Iain’s .irbrc so awesome is the way it handles loading of dependencies (which may or may not be available).

    A few git tips you didn’t know about. Guaranteed to make you a Git Ninja, or at the very least, much more productive with the command line.

    Terminal Tips and Tricks For Mac OS X. Just what it says on the label.

    Upstart — event-based init daemon. The new alternative to sysvinit. Not so new chronologically, but probably new to you. If you’ve using God or Nagios, consider upstarting some of that.

    Awesome Screenshot: Capture & Annotate. This extension (Chrome only) makes screen capture and sharing so easy.

    Incidentally, screenshot of the New revised release calendar.

    1. Jul 26th, 2010

      Stephen Touset

      The .irbrc is extremely reminiscent of one I’ve used myself for ages now. Probably ought to have published it!

      #!env ruby

      module IRB
      def self.init(*requires)
      begin
      requires.each {|r| require r }
      yield if block_given?
      rescue LoadError => e
      warn e.message
      end
      end

      def self.gem(gem, *requires, &block)
      requires < e
      warn e.message.chomp
      end
      end
      end

      IRB.conf[:PROMPT_MODE] = :SIMPLE

      IRB.init ‘rubygems’

      IRB.gem ‘looksee’, ‘looksee/shortcuts’
      IRB.gem ‘awesome_print’, ‘ap’

      IRB.gem ‘wirble’ do
      Wirble.init
      Wirble.colorize
      end

      IRB.gem ‘hirb’ do
      Hirb::View.enable
      end

    2. Jul 26th, 2010

      Stephen Touset

      Apologies for the indentation — it was there when I clicked publish. Prettify it in TextMate.

    3. Jul 26th, 2010

      Assaf

      Thanks, just added looksee to my irbrc.

    Your comment, here ⇓