<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Takeshi Kondo</title>
    <description>The latest articles on DEV Community by Takeshi Kondo (@chaspy).</description>
    <link>https://dev.to/chaspy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F44633%2F85b9adab-6c7a-42de-a0b1-bc569dcd8765.jpeg</url>
      <title>DEV Community: Takeshi Kondo</title>
      <link>https://dev.to/chaspy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chaspy"/>
    <language>en</language>
    <item>
      <title>QS - CLI tool to quickly squash your commit</title>
      <dc:creator>Takeshi Kondo</dc:creator>
      <pubDate>Sun, 28 Oct 2018 10:08:44 +0000</pubDate>
      <link>https://dev.to/chaspy/qs---cli-tool-to-quickly-squash-your-commit-246</link>
      <guid>https://dev.to/chaspy/qs---cli-tool-to-quickly-squash-your-commit-246</guid>
      <description>&lt;h1&gt;
  
  
  Problem
&lt;/h1&gt;

&lt;p&gt;When developing on GitHub, you may want to compile multiple commits into one commit.&lt;/p&gt;

&lt;p&gt;At that time, you probably will do the following procedure:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;git rebase -i &amp;lt;commit hash&amp;gt;&lt;/li&gt;
&lt;li&gt;update from &lt;code&gt;pick&lt;/code&gt; to &lt;code&gt;squash&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;update the commit message&lt;/li&gt;
&lt;li&gt;quit the editor&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It is troublesome to take a lot of such interactive procedures.&lt;/p&gt;

&lt;h1&gt;
  
  
  Solution
&lt;/h1&gt;

&lt;p&gt;I and &lt;a href="https://dev.to/kamontia"&gt;@kamontia&lt;/a&gt; released QS as CLI tool.&lt;/p&gt;

&lt;p&gt;QS helps to do these with just one command.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_dsxyIib--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ym6ruacgroslyp2do8tx.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_dsxyIib--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ym6ruacgroslyp2do8tx.jpeg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;from: &lt;a href="https://speakerdeck.com/chaspy/look-back-on-our-oss-activities"&gt;https://speakerdeck.com/chaspy/look-back-on-our-oss-activities&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--J1scPYOa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/kamontia/qs/raw/assets/assets/logo_transparent.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--J1scPYOa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/kamontia/qs/raw/assets/assets/logo_transparent.png" width="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Repository: &lt;a href="https://github.com/kamontia/qs"&gt;kamontia/qs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Language: Golang&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  How to install
&lt;/h1&gt;

&lt;p&gt;Choose &lt;code&gt;go get&lt;/code&gt; or &lt;code&gt;brew&lt;/code&gt;, your preferred way. You can also download the prebuilt binary from the &lt;a href="https://github.com/kamontia/qs/releases"&gt;release page&lt;/a&gt; and place it in the directory where PATH passes.&lt;/p&gt;

&lt;p&gt;To learn more, please see the &lt;a href="https://github.com/kamontia/qs"&gt;README&lt;/a&gt; in the repository.&lt;/p&gt;

&lt;h1&gt;
  
  
  Summary
&lt;/h1&gt;

&lt;p&gt;QS is very powerful and simple tool to squash your commit quickly&lt;/p&gt;

&lt;p&gt;Please use it, and I'm glad if you give us improvement requests or impressions. &lt;/p&gt;

&lt;p&gt;Thank you!&lt;/p&gt;

</description>
      <category>git</category>
    </item>
    <item>
      <title>Switch aws-cli's profile</title>
      <dc:creator>Takeshi Kondo</dc:creator>
      <pubDate>Sat, 30 Jun 2018 15:32:02 +0000</pubDate>
      <link>https://dev.to/chaspy/switch-aws-clis-profile-2lcj</link>
      <guid>https://dev.to/chaspy/switch-aws-clis-profile-2lcj</guid>
      <description>

&lt;p&gt;If you have a multiple aws account, you should want to switch these accounts.&lt;/p&gt;

&lt;p&gt;Aws-cli provides &lt;code&gt;AWS_DEFAULT_PROFILE&lt;/code&gt; environment variable. When you use aws-cli, use profile in this variable.&lt;/p&gt;

&lt;p&gt;You can easily switch profile with using the following code.&lt;/p&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;awsc &lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;AWS_DEFAULT_PROFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-oE&lt;/span&gt; &lt;span class="s2"&gt;"(&lt;/span&gt;&lt;span class="se"&gt;\[&lt;/span&gt;&lt;span class="s2"&gt;).+(&lt;/span&gt;&lt;span class="se"&gt;\]&lt;/span&gt;&lt;span class="s2"&gt;)"&lt;/span&gt; ~/.aws/credentials | &lt;span class="nb"&gt;tr&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="o"&gt;[]&lt;/span&gt; | peco&lt;span class="k"&gt;)&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Please put this code to .bash_profile.&lt;/p&gt;

&lt;p&gt;You can select a profile in your credential.&lt;/p&gt;

&lt;p&gt;Note: Dependency&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/peco/peco"&gt;peco&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


</description>
      <category>awscli</category>
    </item>
  </channel>
</rss>
