<?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: Emmanuel Morales</title>
    <description>The latest articles on DEV Community by Emmanuel Morales (@developemmanuel).</description>
    <link>https://dev.to/developemmanuel</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%2F925782%2F4da09a6d-5c6b-44bf-b07b-278f35dae094.jpeg</url>
      <title>DEV Community: Emmanuel Morales</title>
      <link>https://dev.to/developemmanuel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/developemmanuel"/>
    <language>en</language>
    <item>
      <title>Create a Laravel Project by setting "laravel" as global</title>
      <dc:creator>Emmanuel Morales</dc:creator>
      <pubDate>Tue, 13 Dec 2022 19:04:43 +0000</pubDate>
      <link>https://dev.to/developemmanuel/create-a-laravel-project-by-setting-laravel-as-global-25gh</link>
      <guid>https://dev.to/developemmanuel/create-a-laravel-project-by-setting-laravel-as-global-25gh</guid>
      <description>&lt;h1&gt;
  
  
  Install Laravel Via Composer
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Installing:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;composer global require laravel/installer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Check that &lt;code&gt;laravel&lt;/code&gt; is installed in this path &lt;code&gt;~/composer/vendor/bin&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&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; ~/.composer/vendor/bin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;To get the full path and to copy and set it on &lt;code&gt;/etc/paths&lt;/code&gt; then we can use &lt;code&gt;pwd&lt;/code&gt; on &lt;code&gt;~/composer/vendor/bin&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Insert the path on &lt;code&gt;/etc/paths&lt;/code&gt;:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo vim /etc/paths
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# ...&lt;/span&gt;
/Users/username/composer/vendor/bin &lt;span class="c"&gt;# path inserted&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Using &lt;code&gt;laravel new&lt;/code&gt;
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;laravel new test-project
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>java</category>
      <category>springboot</category>
      <category>aws</category>
    </item>
    <item>
      <title>Installing Laravel in Mac (M1)</title>
      <dc:creator>Emmanuel Morales</dc:creator>
      <pubDate>Fri, 23 Sep 2022 21:57:59 +0000</pubDate>
      <link>https://dev.to/developemmanuel/installing-laravel-in-mac-m1-3on</link>
      <guid>https://dev.to/developemmanuel/installing-laravel-in-mac-m1-3on</guid>
      <description>&lt;h1&gt;
  
  
  Pre-Requisites
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;I'll use &lt;a href="https://dev.to/bin/bash%20-c"&gt;Homebrew&lt;/a&gt; as the package manager.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/bin/bash &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Installing &lt;code&gt;PHP&lt;/code&gt; and &lt;code&gt;componser&lt;/code&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Install &lt;code&gt;php&lt;/code&gt;:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install &lt;code&gt;composer&lt;/code&gt;:
&lt;/li&gt;
&lt;/ul&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;composer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Creating a running a Laravel project
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Creating the project:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;composer create-project laravel/laravel app-name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Running the app project
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Change to the project directory:&lt;/span&gt;
&lt;span class="nb"&gt;cd&lt;/span&gt; &amp;lt;app-name&amp;gt;
&lt;span class="c"&gt;# Run the server:&lt;/span&gt;
php artisan serve
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Install Rails in Mac (M1)</title>
      <dc:creator>Emmanuel Morales</dc:creator>
      <pubDate>Fri, 23 Sep 2022 21:51:17 +0000</pubDate>
      <link>https://dev.to/developemmanuel/install-rails-in-mac-m1-4281</link>
      <guid>https://dev.to/developemmanuel/install-rails-in-mac-m1-4281</guid>
      <description>&lt;h1&gt;
  
  
  Pre-Requisites
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;I'll use &lt;a href="https://dev.to/bin/bash%20-c"&gt;Homebrew&lt;/a&gt; as the package manager.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/bin/bash &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Use &lt;code&gt;.zshrc&lt;/code&gt; file if we have or if not just create it, by default we can use the vim editor
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# To create the file&lt;/span&gt;
vim ~/.zshrc
&lt;span class="c"&gt;# :w to save it.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Install Ruby
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Installing &lt;code&gt;rbenv&lt;/code&gt;for ruby:
&lt;/li&gt;
&lt;/ul&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;rbenv ruby-build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;To use &lt;code&gt;rbenv&lt;/code&gt; every time we create a new terminal session we set
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'if which rbenv &amp;gt; /dev/null; then eval "$(rbenv init -)"; fi'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; ~/.zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Save the changes:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;source&lt;/span&gt; ~/.zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Installing Ruby:
&lt;/li&gt;
&lt;/ul&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: The Ruby version can be found in the official  &lt;a href="https://www.ruby-lang.org/es/downloads/"&gt;Documentation&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Make Ruby's version as global:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rbenv global 3.1.2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Save the changes:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;source&lt;/span&gt; .zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: To see if it was installed right we type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ruby &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Installing Rails
&lt;/h1&gt;

&lt;p&gt;By installing &lt;code&gt;ruby&lt;/code&gt; we can use the &lt;code&gt;gem&lt;/code&gt; package manager, which contains &lt;code&gt;rails&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install Rails
&lt;/li&gt;
&lt;/ul&gt;

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

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Reload &lt;code&gt;rbenv&lt;/code&gt; to use the command &lt;code&gt;rails&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rbenv rehash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: If we install &lt;code&gt;rails&lt;/code&gt; right, we can type:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rails &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Create and run a new &lt;code&gt;rails&lt;/code&gt; project.
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Creating the project:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rails new proyect-name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: As default &lt;code&gt;rails&lt;/code&gt; use the &lt;code&gt;SQLite&lt;/code&gt; database when a new project is created, we can use our own databases, such as &lt;a href="https://dev.to/developemmanuel/mysql-in-mac-m1-17co"&gt;MySQL&lt;/a&gt;, PostgreSQL, MongoDB, etc. And we can set it by typing:&lt;/p&gt;


&lt;pre class="highlight shell"&gt;&lt;code&gt;rails new proyect-name mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Create a database for the project:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rails db:create
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: If we a database with password, we have to configured the file &lt;code&gt;config/database.yml&lt;/code&gt;, and change the data from the user (for developer purposes &lt;code&gt;root&lt;/code&gt;) and the password. So by making saving this changes we use rails db:create&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Running the server:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rails server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>ruby</category>
      <category>rails</category>
    </item>
    <item>
      <title>MySQL in Mac (M1)</title>
      <dc:creator>Emmanuel Morales</dc:creator>
      <pubDate>Fri, 23 Sep 2022 21:50:16 +0000</pubDate>
      <link>https://dev.to/developemmanuel/mysql-in-mac-m1-17co</link>
      <guid>https://dev.to/developemmanuel/mysql-in-mac-m1-17co</guid>
      <description>&lt;h1&gt;
  
  
  Pre-Requisites
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;I'll use &lt;a href="https://dev.to/bin/bash%20-c"&gt;Homebrew&lt;/a&gt; as the package manager.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/bin/bash &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Installing MySQL
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Install MySQL:
&lt;/li&gt;
&lt;/ul&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;mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Before setting up MySQL we have to start the &lt;code&gt;brew services&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew services start mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: To stop &lt;code&gt;mysql&lt;/code&gt; we set&lt;/p&gt;


&lt;pre class="highlight shell"&gt;&lt;code&gt;brew services stop mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Setting up MySQL
&lt;/h1&gt;

&lt;h3&gt;
  
  
  Without Password
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;We just type:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysql -uroot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and our session is on, we can exit the session by typing&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mysql&amp;gt; &lt;span class="nb"&gt;exit&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  With Password
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;We type:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mysql_secure_installation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: ”Validate password component" needs a secure sequence of characters to set the password, this include as minimum 8 characters and other more patterns.&lt;br&gt;
If we set &lt;code&gt;y&lt;/code&gt; (yes), it'll require that pattern, if we don't want that it, we just set &lt;code&gt;n&lt;/code&gt; (no).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Recommended answers in the installation
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Remove anonymous users?:&lt;/span&gt;
y
&lt;span class="c"&gt;#Disallow root login remotely?:&lt;/span&gt;
n
&lt;span class="c"&gt;# Remove test database and access to it?:&lt;/span&gt;
y
&lt;span class="c"&gt;# Reload Privilege tables now?:&lt;/span&gt;
y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;To start the mysql session with password we just type:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mysql &lt;span class="nt"&gt;-uroot&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and it will ask the password.&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Set up SSH to auth GitHub in a Terminal session</title>
      <dc:creator>Emmanuel Morales</dc:creator>
      <pubDate>Sat, 17 Sep 2022 19:49:16 +0000</pubDate>
      <link>https://dev.to/developemmanuel/set-up-ssh-for-github-in-the-terminal-25go</link>
      <guid>https://dev.to/developemmanuel/set-up-ssh-for-github-in-the-terminal-25go</guid>
      <description>&lt;h1&gt;
  
  
  Verify the existence of the directory &lt;code&gt;~/.ssh&lt;/code&gt;
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Let's verify if we have a directory called &lt;code&gt;.ssh&lt;/code&gt; in the root (&lt;code&gt;cd ~&lt;/code&gt;). 
We can verify by changing to that directory &lt;code&gt;cd ~/.ssh&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Creating the &lt;code&gt;.ssh&lt;/code&gt; directory
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;If we &lt;strong&gt;don't have&lt;/strong&gt; the directory then we create it: &lt;code&gt;mkdir ~/.ssh&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Generate a new key
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt; If &lt;strong&gt;we have&lt;/strong&gt; the directory, then we generate a key by
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-keygen
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;We press &lt;code&gt;ENTER&lt;/code&gt; to save the key in our directory &lt;code&gt;/Users/user-name/.ssh/id_rsa&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If we &lt;strong&gt;want a password&lt;/strong&gt; that protect the key, we enter a passphrase and click &lt;code&gt;ENTER&lt;/code&gt;, and we repeat the same passphrase settled later and press &lt;code&gt;ENTER&lt;/code&gt;again.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If &lt;strong&gt;we don't&lt;/strong&gt; want to, we just left it empty and press &lt;code&gt;ENTER&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Add the public password to Github
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Look and copy the public password:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat &lt;/span&gt;id_rsa.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--D1PHPv0O--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dt2vc5d7agdp7cfy0jrd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--D1PHPv0O--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dt2vc5d7agdp7cfy0jrd.png" alt="Image description" width="865" height="629"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;We go to &lt;strong&gt;Settings&lt;/strong&gt; profile:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xJOZNVg3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iy0ob8hc2qjyaw302t2z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xJOZNVg3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iy0ob8hc2qjyaw302t2z.png" alt="Image description" width="880" height="612"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Then we move to &lt;strong&gt;SSH and GPG keys&lt;/strong&gt;:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2SEkI4iT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kzkfim91nj0qcbcvoeyl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2SEkI4iT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kzkfim91nj0qcbcvoeyl.png" alt="Image description" width="880" height="612"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;And we add a &lt;strong&gt;New SSH key&lt;/strong&gt; by adding a Title, the use of that key (in our case &lt;strong&gt;Authentication key&lt;/strong&gt;), and the public key generated from the public password (&lt;code&gt;cat id_rsa.pub&lt;/code&gt;).&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LzQoGTgs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qgl7b6frr9e177jgktr6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LzQoGTgs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qgl7b6frr9e177jgktr6.png" alt="Image description" width="880" height="651"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Note&lt;/strong&gt;: The key we use is the public one, from the &lt;code&gt;id_rsa.pub&lt;/code&gt;, &lt;strong&gt;NOT&lt;/strong&gt; the &lt;code&gt;id_rsa&lt;/code&gt;key.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Adding an &lt;code&gt;agent&lt;/code&gt; to hold the ssh key.
&lt;/h1&gt;

&lt;p&gt;An &lt;code&gt;agent&lt;/code&gt; holds the public and private key for authenticate into services, in our case GitHub.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start the agent:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;eval $(ssh-agent -s)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cS6vZo1K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9gve1lfutwi6km689lyy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cS6vZo1K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9gve1lfutwi6km689lyy.png" alt="Image description" width="865" height="629"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add the password to the agent:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh-add ~/.ssh/id_rsa
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PmdPlQck--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0r97titfuu9qv7z6qgiu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PmdPlQck--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0r97titfuu9qv7z6qgiu.png" alt="Image description" width="865" height="629"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Testing
&lt;/h1&gt;

&lt;p&gt;Now in our session is validated to use &lt;code&gt;push&lt;/code&gt; and &lt;code&gt;clone&lt;/code&gt; on our public and private repositories.&lt;/p&gt;

&lt;h3&gt;
  
  
  Basic Test
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git init
git add &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Then we add the SSH link from a GitHub Repository:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote add origin git@github.com:user/Repo_Name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qWO03Kg6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mrjb6slyr1yi82kjuhye.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qWO03Kg6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mrjb6slyr1yi82kjuhye.png" alt="Image description" width="880" height="679"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We make our commit:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git commit -m "First Commit"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So when we do some &lt;code&gt;git push -u origin master&lt;/code&gt; the authentication will be settled.&lt;/p&gt;

</description>
      <category>ssh</category>
      <category>github</category>
      <category>git</category>
      <category>terminal</category>
    </item>
    <item>
      <title>Installing Lunar Vim</title>
      <dc:creator>Emmanuel Morales</dc:creator>
      <pubDate>Tue, 13 Sep 2022 21:22:12 +0000</pubDate>
      <link>https://dev.to/developemmanuel/starting-in-lunar-vim-in-mac-3733</link>
      <guid>https://dev.to/developemmanuel/starting-in-lunar-vim-in-mac-3733</guid>
      <description>&lt;h2&gt;
  
  
  Brief description
&lt;/h2&gt;

&lt;p&gt;Is a fast IDE layer for Neovim. Vim, at some point let you be focus on the code, and by that, use the keyboard as the main tool, instead of the mouse.&lt;/p&gt;

&lt;h2&gt;
  
  
  Previous installed tools.
&lt;/h2&gt;

&lt;p&gt;We can use the package manager &lt;a href="https://brew.sh/" rel="noopener noreferrer"&gt;Homebrew&lt;/a&gt; to install the main tools:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install git
brew install node
brew install python
brew install neovim
brew install lua
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Optional &lt;strong&gt;Yarn&lt;/strong&gt; if &lt;code&gt;npm&lt;/code&gt;does not work in the installation process.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install yarn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;a href="https://doc.rust-lang.org/cargo/getting-started/installation.html" rel="noopener noreferrer"&gt;Cargo&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl https://sh.rustup.rs -sSf | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;Lunar Vim installation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bash &amp;lt;(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Asked questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Would you like to install LunarVim's NodeJS dependencies?: &lt;code&gt;y&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Would you like to install LunarVim's Python dependencies?: &lt;code&gt;y&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Would you like to install LunarVim's Rust dependencies?: &lt;code&gt;y&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then we can use the command &lt;code&gt;lvim&lt;/code&gt; to use it our terminal&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnhpgdz0bibkhvy1xsthk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnhpgdz0bibkhvy1xsthk.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Oficial Documentation:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.lunarvim.org/" rel="noopener noreferrer"&gt;Lunar Vim&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>lunarvim</category>
      <category>vim</category>
      <category>neovim</category>
    </item>
  </channel>
</rss>
