<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>Bartosz Blimke</title><generator>Tumblr (3.0; @bartoszblimke)</generator><link>http://bartoszblimke.tumblr.com/</link><item><title>Solving the problem of non-working key forwarding with Capistrano</title><description>&lt;p&gt;After I upgraded my Mac to Snow Leopard, Capistrano deployments with key forwarding stopped working. I started getting a following error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Permission denied (publickey).
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;My fellow Bambinos enlightened me that key forwarding was switched off by default in Snow Leopard. The solution was to change the following two lines in &lt;code&gt;/etc/ssh_config&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#Host *
#ForwardAgent no
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;to the following two lines:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Host *
ForwardAgent yes
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Unfortunately after this change I was still getting &lt;code&gt;Permission denied (publickey)&lt;/code&gt; error.&lt;/p&gt;

&lt;p&gt;Today I found the root cause. My ssh key was not added to the authentication agent so the key was not forwarded. The solution was to execute the following command:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ssh-add ~/.ssh/id_dsa
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;(or &lt;code&gt;ssh-add ~/.ssh/id_rsa&lt;/code&gt; if you use rsa key)&lt;/p&gt;

&lt;p&gt;Now everything works fine.&lt;/p&gt;</description><link>http://bartoszblimke.tumblr.com/post/229831899</link><guid>http://bartoszblimke.tumblr.com/post/229831899</guid><pubDate>Sun, 01 Nov 2009 11:24:00 -0500</pubDate><category>snow leopard</category><category>forwardagent</category><category>ssh</category><category>capistrano</category></item><item><title>How to mock Rails view helpers with RSpec</title><description>&lt;p&gt;If you want to stub view helper method in some view spec, you can do the following:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; @controller.template.stub!(:helper_method_name).with(:some_args).and_return("some result")
&lt;/code&gt;&lt;/pre&gt;</description><link>http://bartoszblimke.tumblr.com/post/46945145</link><guid>http://bartoszblimke.tumblr.com/post/46945145</guid><pubDate>Fri, 22 Aug 2008 05:08:39 -0400</pubDate></item><item><title>HHGTTG online</title><description>&lt;a href="http://parchment.googlecode.com/svn/trunk/parchment.html?story=http://labs.toolness.com/parchment/infocom/hitchhik.z5"&gt;HHGTTG online&lt;/a&gt;</description><link>http://bartoszblimke.tumblr.com/post/46665661</link><guid>http://bartoszblimke.tumblr.com/post/46665661</guid><pubDate>Wed, 20 Aug 2008 05:12:29 -0400</pubDate></item><item><title>How to setup ExceptionNotifier to send email notifications using Gmail</title><description>&lt;a href="http://newleaders.com/discussions/168-using-gmail-smtp-with-actionmailer"&gt;How to setup ExceptionNotifier to send email notifications using Gmail&lt;/a&gt;</description><link>http://bartoszblimke.tumblr.com/post/44318456</link><guid>http://bartoszblimke.tumblr.com/post/44318456</guid><pubDate>Fri, 01 Aug 2008 05:44:40 -0400</pubDate></item><item><title>How to setup God to send email notifications using Gmail</title><description>&lt;p&gt;Here is, how to setup God to send email notifications using a Gmail account.&lt;/p&gt;
&lt;p&gt;Step 1:&lt;/p&gt;
&lt;p&gt;gem install tlsmail&lt;/p&gt;
&lt;p&gt;Step 2:&lt;/p&gt;
&lt;p&gt;Modify the following code and add it to your God config&lt;/p&gt;
&lt;p&gt;—-&lt;/p&gt;
&lt;p&gt;require ‘tlsmail’&lt;br/&gt;Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)&lt;br/&gt;&lt;br/&gt;God::Contacts::Email.message_settings = {:from =&gt; ‘my_user@gmail.com’}&lt;br/&gt;&lt;br/&gt;God::Contacts::Email.server_settings = {&lt;br/&gt; :address =&gt; “smtp.gmail.com”,&lt;br/&gt; :port =&gt; 587,&lt;br/&gt; :user_name =&gt; “my_user@gmail.com”,&lt;br/&gt; :password =&gt; “password”,&lt;br/&gt; :authentication =&gt; :plain&lt;br/&gt;&lt;br/&gt;}&lt;/p&gt;
&lt;p&gt;—-&lt;/p&gt;</description><link>http://bartoszblimke.tumblr.com/post/44318347</link><guid>http://bartoszblimke.tumblr.com/post/44318347</guid><pubDate>Fri, 01 Aug 2008 05:43:00 -0400</pubDate></item></channel></rss>
