<?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: Katsuhisa Kitano</title>
    <description>The latest articles on DEV Community by Katsuhisa Kitano (@katsuhisa91).</description>
    <link>https://dev.to/katsuhisa91</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%2F584076%2F7a8e6809-05f9-4db6-8612-ecc02c96214d.png</url>
      <title>DEV Community: Katsuhisa Kitano</title>
      <link>https://dev.to/katsuhisa91</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/katsuhisa91"/>
    <language>en</language>
    <item>
      <title>GitHub Actions for FFmpeg</title>
      <dc:creator>Katsuhisa Kitano</dc:creator>
      <pubDate>Mon, 22 Feb 2021 14:42:49 +0000</pubDate>
      <link>https://dev.to/katsuhisa91/github-actions-for-ffmpeg-knn</link>
      <guid>https://dev.to/katsuhisa91/github-actions-for-ffmpeg-knn</guid>
      <description>&lt;p&gt;I wanted to use FFmpeg to create gif files to attach to GitHub, but I didn't want to install FFmpeg on my local machine. So I made it possible to run FFmpeg on GitHub Actions.&lt;/p&gt;

&lt;h4&gt;
  
  
  GitHub
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://github.com/katsuhisa91/just-ffmpeg-actions"&gt;https://github.com/katsuhisa91/just-ffmpeg-actions&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. clone this repository &amp;amp; put your movie file in &lt;code&gt;origin&lt;/code&gt; folder
&lt;/h3&gt;

&lt;h3&gt;
  
  
  2. update env about video file names
&lt;/h3&gt;

&lt;p&gt;CAUTION: Overwrite an exist video file if same &lt;code&gt;AFTER_PROCESSING_FILE&lt;/code&gt; name is exists.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;build&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;BEFORE_PROCESSING_FILE&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;shortcut-to-github1s.mov&lt;/span&gt;
      &lt;span class="na"&gt;AFTER_PROCESSING_FILE&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;shortcut-to-github1s.gif&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. update FFmpeg options if you need
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Execute ffmpeg&lt;/span&gt;
        &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ffmpeg -y -i origin/${{ env.BEFORE_PROCESSING_FILE }} -vf scale=800:-1 -r 10 processed/${{ env.AFTER_PROCESSING_FILE }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By the way, the default option is optimized for converting to gifs from .mov extensions.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. commit &amp;amp; push
&lt;/h3&gt;

&lt;h3&gt;
  
  
  5. GitHub Actions bot commit a processed video file into &lt;code&gt;processed&lt;/code&gt; folder
&lt;/h3&gt;

</description>
    </item>
    <item>
      <title>My Ansible Playbook for setup M1 Mac</title>
      <dc:creator>Katsuhisa Kitano</dc:creator>
      <pubDate>Mon, 22 Feb 2021 14:23:36 +0000</pubDate>
      <link>https://dev.to/katsuhisa91/my-ansible-playbook-for-setup-m1-mac-2j9m</link>
      <guid>https://dev.to/katsuhisa91/my-ansible-playbook-for-setup-m1-mac-2j9m</guid>
      <description>&lt;p&gt;The other day, I bought an M1 Mac. The setup seemed to be a pain, so I made an Ansible Playbook so that I can easily recreate it later.&lt;/p&gt;

&lt;h4&gt;
  
  
  GitHub
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://github.com/katsuhisa91/m1mac-ansible"&gt;https://github.com/katsuhisa91/m1mac-ansible&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  About Roles
&lt;/h4&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;roles&lt;/th&gt;
&lt;th&gt;about&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;prezto&lt;/td&gt;
&lt;td&gt;Prezto is the configuration framework for Zsh. &lt;a href="https://github.com/sorin-ionescu/prezto"&gt;https://github.com/sorin-ionescu/prezto&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;dotfiles&lt;/td&gt;
&lt;td&gt;This is my dot files. &lt;a href="https://github.com/katsuhisa91/dotfiles"&gt;https://github.com/katsuhisa91/dotfiles&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;rustup&lt;/td&gt;
&lt;td&gt;Install Rust by rustup for my favorite command. &lt;a href="https://github.com/rust-lang/rustup/blob/master/doc/src/installation/index.md#installing-nightly"&gt;https://github.com/rust-lang/rustup/blob/master/doc/src/installation/index.md#installing-nightly&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;command&lt;/td&gt;
&lt;td&gt;This is my favorite command.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How to execute
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Install xcode command line tools
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcode-select &lt;span class="nt"&gt;--install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Install Homebrew
&lt;/h3&gt;

&lt;p&gt;Follow the steps below and you should be able to install it without any problems.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.brew.sh/Installation"&gt;https://docs.brew.sh/Installation&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This script installs Homebrew to its preferred prefix (/usr/local for macOS Intel, /opt/homebrew for Apple Silicon) so that you don’t need sudo when you brew install.&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /opt
&lt;span class="nb"&gt;sudo mkdir &lt;/span&gt;homebrew
&lt;span class="nb"&gt;sudo chown&lt;/span&gt; &lt;span class="nv"&gt;$USER&lt;/span&gt; homebrew
&lt;span class="nb"&gt;sudo chgrp &lt;/span&gt;admin homebrew
curl &lt;span class="nt"&gt;-L&lt;/span&gt; https://github.com/Homebrew/brew/tarball/master | &lt;span class="nb"&gt;tar &lt;/span&gt;xz &lt;span class="nt"&gt;--strip&lt;/span&gt; 1 &lt;span class="nt"&gt;-C&lt;/span&gt; homebrew
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Set PATH for M1 Mac brew
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"/opt/homebrew/bin:&lt;/span&gt;&lt;span class="nv"&gt;$PATH&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. brew install Ansible
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew &lt;span class="nb"&gt;install &lt;/span&gt;ansible
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  5. Setup &amp;amp; Execute Playbook
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/zsh&lt;/span&gt;

&lt;span class="nv"&gt;ANSIBLE_PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;~/workspace/settings/m1mac-ansible

&lt;span class="c"&gt;## clone repo&lt;/span&gt;
git clone https://github.com/katsuhisa91/m1mac-ansible.git &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;ANSIBLE_PATH&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;## ansible galaxy&lt;/span&gt;
ansible-galaxy collection &lt;span class="nb"&gt;install &lt;/span&gt;community.general

&lt;span class="c"&gt;## ansible&lt;/span&gt;
&lt;span class="nb"&gt;cd&lt;/span&gt; &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;ANSIBLE_PATH&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;
ansible-playbook &lt;span class="nt"&gt;-i&lt;/span&gt; inventory/localhost localhost.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it! Enjoy your M1 Mac life! 🚀&lt;/p&gt;

</description>
    </item>
    <item>
      <title>A Chrome Extension to access GitHub1s with shortcut keys</title>
      <dc:creator>Katsuhisa Kitano</dc:creator>
      <pubDate>Mon, 22 Feb 2021 13:12:55 +0000</pubDate>
      <link>https://dev.to/katsuhisa91/a-chrome-extension-to-access-github1s-with-shortcut-keys-1o5a</link>
      <guid>https://dev.to/katsuhisa91/a-chrome-extension-to-access-github1s-with-shortcut-keys-1o5a</guid>
      <description>&lt;p&gt;I released &lt;a href="https://github.com/katsuhisa91/github1s-shortcut"&gt;github1s-shortcut&lt;/a&gt;, launch &lt;a href="https://github.com/conwnet/github1s"&gt;github1s&lt;/a&gt; with Ctrl(Win)/Command(Mac)+Shift+1. 🎉&lt;/p&gt;

&lt;p&gt;Try it out!&lt;/p&gt;

&lt;h4&gt;
  
  
  Chrome Extension
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://chrome.google.com/webstore/detail/shortcut-to-github1s/gfcdbodapcbfckbfpmgeldfkkgjknceo"&gt;https://chrome.google.com/webstore/detail/shortcut-to-github1s/gfcdbodapcbfckbfpmgeldfkkgjknceo&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  GitHub
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://github.com/katsuhisa91/github1s-shortcut"&gt;https://github.com/katsuhisa91/github1s-shortcut&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Motivation
&lt;/h2&gt;

&lt;p&gt;I am very grateful for &lt;a href="https://github.com/conwnet/github1s"&gt;github1s&lt;/a&gt;. I also created a Chrome Extension to launch github1s with a shortcut key so that more people can use it conveniently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Future Works
&lt;/h2&gt;

&lt;p&gt;I also want to publish browser extensions for Edge and Firefox.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
