<?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: Francisco Cornejo Garcia</title>
    <description>The latest articles on DEV Community by Francisco Cornejo Garcia (@franciscornejog).</description>
    <link>https://dev.to/franciscornejog</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%2F1187846%2F683a5d87-dd01-46cf-bad5-b806ef42caf3.jpeg</url>
      <title>DEV Community: Francisco Cornejo Garcia</title>
      <link>https://dev.to/franciscornejog</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/franciscornejog"/>
    <language>en</language>
    <item>
      <title>Set up Eleventy with Bun</title>
      <dc:creator>Francisco Cornejo Garcia</dc:creator>
      <pubDate>Sun, 19 Nov 2023 23:48:56 +0000</pubDate>
      <link>https://dev.to/franciscornejog/set-up-eleventy-with-bun-4cff</link>
      <guid>https://dev.to/franciscornejog/set-up-eleventy-with-bun-4cff</guid>
      <description>&lt;p&gt;If you do not already have bun installed, &lt;a href="https://bun.sh/docs/installation"&gt;install bun here&lt;/a&gt; for different ways to install.&lt;/p&gt;

&lt;p&gt;In your terminal, we create a new project and hop in.&lt;br&gt;
&lt;code&gt;bun init&lt;/code&gt; will create a package.json file for you.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir new-project
cd new-project
bun init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we install Eleventy as a dev dependency.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bun add --dev @11ty/eleventy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We create a file to try out.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo '&amp;lt;h1&amp;gt;Hello World!&amp;lt;/h1&amp;gt;' &amp;gt; index.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Compile and run Eleventy to generate a static file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bunx @11ty/eleventy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should be able to see a new directory, &lt;code&gt;_site&lt;/code&gt;, that contains your generated file. &lt;/p&gt;

&lt;p&gt;How about we start up a hot-reloading local web server?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;bunx @11ty/eleventy --serve
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Go to &lt;a href="http://localhost:8080/"&gt;http://localhost:8080/&lt;/a&gt; to see your file live!&lt;br&gt;
You can make changes and save your file for your browser to auto-reload and see your new updates.&lt;/p&gt;

&lt;p&gt;Learn more from the following resources.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.11ty.dev/docs/get-started/"&gt;Get Started with Eleventy&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://bun.sh/docs"&gt;Bun Documentation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tutorial</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>eleventy</category>
    </item>
    <item>
      <title>How to Send Files over SCP</title>
      <dc:creator>Francisco Cornejo Garcia</dc:creator>
      <pubDate>Mon, 23 Oct 2023 04:59:58 +0000</pubDate>
      <link>https://dev.to/franciscornejog/how-to-send-files-over-scp-4j3o</link>
      <guid>https://dev.to/franciscornejog/how-to-send-files-over-scp-4j3o</guid>
      <description>&lt;p&gt;SCP means Secure Copy Protocol, a network protocol that copies data from one remote place to another through a secure connection. Let's copy a file from one place to another.&lt;/p&gt;

&lt;p&gt;To scp a file over, you must include a source and a destination.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;source&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;destination]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the source, you type a file path to the file you want to copy. &lt;/p&gt;

&lt;p&gt;For the destination, you type the username and host of the remote device to connect to. &lt;br&gt;
Then, you type the file path to the destination you want your file to be in.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp /path/to/file username@host:/path/to/destination
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can use a port number too.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;scp &lt;span class="nt"&gt;-P&lt;/span&gt; 80 /path/to/file username@host:/path/to/destination
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To learn more, you can always &lt;code&gt;man scp&lt;/code&gt; for more details.&lt;/p&gt;

&lt;p&gt;What esoteric terminal command did you discover? &lt;/p&gt;

</description>
      <category>network</category>
      <category>tutorial</category>
      <category>linux</category>
      <category>tooling</category>
    </item>
    <item>
      <title>3 Easy Morning Habits in 3 Minutes</title>
      <dc:creator>Francisco Cornejo Garcia</dc:creator>
      <pubDate>Thu, 19 Oct 2023 04:10:39 +0000</pubDate>
      <link>https://dev.to/franciscornejog/3-easy-morning-habits-in-3-minutes-144j</link>
      <guid>https://dev.to/franciscornejog/3-easy-morning-habits-in-3-minutes-144j</guid>
      <description>&lt;p&gt;Starting a new habit can be difficult, especially when and where to get started. Having tried a variety of habits over the years, below are three morning habits that have helped started my journey toward a better lifestyle.&lt;/p&gt;

&lt;p&gt;In the morning, I would&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Drink Water&lt;/strong&gt;&lt;br&gt;
When I wake up, I often feel dehydrated and need to drink some water. Having a bottle or cup of water beside your bed can prompt you to drink water and also wake you up as you struggle to fight off the urge to back to sleep. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Wash your Face&lt;/strong&gt;&lt;br&gt;
I don’t know about you but I often need to use the bathroom when I wake up. After that, I already feel I need to wash my hands. Here is the perfect opportunity to put water and soap on your face and begin washing. Nothing like a cold splash of water to shock you.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Write an X&lt;/strong&gt;&lt;br&gt;
One thing that most people forget when setting a new habit is rewarding yourself for doing them. Writing an X right after drinking water or washing your face can provide a fun, visual way to see your progress. For every set of habits you do, write an X on a nearby piece of paper, in a journal, or even on your phone. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;While these habits seem small and not very important, they are easy to start with and can lead to more impactful habits that I’ve discovered later on this journey. &lt;/p&gt;

&lt;p&gt;Readers, what are some small habits that already got you started on your own journey? &lt;/p&gt;

</description>
      <category>productivity</category>
      <category>habits</category>
      <category>mentalhealth</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
