<?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: Yasu Flores</title>
    <description>The latest articles on DEV Community by Yasu Flores (@yasuf).</description>
    <link>https://dev.to/yasuf</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%2F370776%2Fc530ada3-b478-45ca-9eb0-f5fbd0ac2796.jpeg</url>
      <title>DEV Community: Yasu Flores</title>
      <link>https://dev.to/yasuf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yasuf"/>
    <language>en</language>
    <item>
      <title>How to create your own nginx cheatsheet using the waterdeep.io command line interface</title>
      <dc:creator>Yasu Flores</dc:creator>
      <pubDate>Tue, 21 Apr 2020 04:30:09 +0000</pubDate>
      <link>https://dev.to/yasuf/how-to-create-your-own-nginx-cheatsheet-using-the-waterdeep-io-command-line-interface-1f19</link>
      <guid>https://dev.to/yasuf/how-to-create-your-own-nginx-cheatsheet-using-the-waterdeep-io-command-line-interface-1f19</guid>
      <description>&lt;h3&gt;
  
  
  Here's a guide on how to create your nginx cheatsheet using the waterdeep.io CLI
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Install the &lt;a href="https://github.com/yasuf/waterdeep-cli"&gt;CLI&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -g waterdeep-cli
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Sign up and create an account at &lt;a href="https://waterdeep.io"&gt;waterdeep.io&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create a new file in with name &lt;code&gt;nginx_cheatsheet.txt&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Copy and paste the following content to the editor:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;### Nginx Cheatsheet

[Start service]
systemctl start nginx

[Stop service]
systemctl stop nginx

[Restart service]
systemctl restart nginx

[Reload config]
systemctl reload nginx
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Save the file with "Save Script"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now you can retrieve that file using the CLI:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ water get [your username]/nginx_cheatsheet.txt
systemctl start nginx
systemctl stop nginx
systemctl restart nginx
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;As a side note, remember you can also retrieve a list of all your files on waterdeep by using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ water get [your username]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>nginx</category>
      <category>devops</category>
      <category>cli</category>
    </item>
  </channel>
</rss>
