<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ankit Bahuguna on ankit bahuguna</title>
    <link>https://ankitbahuguna.xyz/authors/ankit-bahuguna/</link>
    <description>Recent content in Ankit Bahuguna on ankit bahuguna</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Tue, 20 Jul 2021 20:12:06 +0530</lastBuildDate>
    <atom:link href="https://ankitbahuguna.xyz/authors/ankit-bahuguna/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Async Generators</title>
      <link>https://ankitbahuguna.xyz/posts/using-async-generators-in-node-js/</link>
      <pubDate>Tue, 20 Jul 2021 20:12:06 +0530</pubDate>
      <guid>https://ankitbahuguna.xyz/posts/using-async-generators-in-node-js/</guid>
      <description>So I recently put Javascript generator functions to a good use.
I needed to retrieve all the users from Cognito and then filter them out based on the value of a custom attribute. The Cognito only returns a maximum of 60 users in a single call and a PaginationToken if there are more users. The PaginationToken can then be used to retrieve more users.
So this is the solution I came up with.</description>
    </item>
    <item>
      <title>Deploying Hugo With Rsync</title>
      <link>https://ankitbahuguna.xyz/posts/deploy-hugo-with-rsync/</link>
      <pubDate>Wed, 25 Nov 2020 15:15:58 +0530</pubDate>
      <guid>https://ankitbahuguna.xyz/posts/deploy-hugo-with-rsync/</guid>
      <description>This is the script I use to deploy my Hugo website to Vultr.
#!/bin/sh USER=username HOST=hostip DIR=nginx-web-root-absolute-path hugo &amp;amp;&amp;amp; rsync -avz --delete public/ ${USER}@${HOST}:${DIR} exit 0 It requires that you have ssh access to the server you are trying to deploy to, and it also requires that the said server has rsync installed as well.
The key command here is rsync -avz source destination .
The -a option is a combination flag.</description>
    </item>
    <item>
      <title>Bye Bye Gatsby!  Hello Hugo!</title>
      <link>https://ankitbahuguna.xyz/posts/bye-bye-hugo/</link>
      <pubDate>Tue, 10 Mar 2020 18:31:30 +0530</pubDate>
      <guid>https://ankitbahuguna.xyz/posts/bye-bye-hugo/</guid>
      <description>So, I finally decided that Gatsby wasn&amp;rsquo;t what I needed. It has lengthy build times and offers many features I don&amp;rsquo;t require. There&amp;rsquo;s nothing inherently wrong with it; in fact, it&amp;rsquo;s a great fit for various use cases. However, for someone who just wants a simple static personal blog without the extra flair, Hugo seems to be a superior choice.
Compared to Gatsby, Hugo&amp;rsquo;s build times are impressively fast, and it has a shorter learning curve.</description>
    </item>
    <item>
      <title>Linux File Permissions</title>
      <link>https://ankitbahuguna.xyz/posts/linux-file-permission/</link>
      <pubDate>Mon, 09 Feb 2015 19:46:07 +0530</pubDate>
      <guid>https://ankitbahuguna.xyz/posts/linux-file-permission/</guid>
      <description>One of the most commonly faced issues while deploying websites with a web server like Nginx or Apache is dealing with permission errors. You deploy your website and suddenly your website starts throwing errors like &amp;ldquo;403 Forbidden&amp;rdquo; or &amp;ldquo;500 Internal Error&amp;rdquo;. Most often than not it has to do with the incorrect file or directory permissions.
The permissions on a file in Linux dictate who can perform what operations on it.</description>
    </item>
  </channel>
</rss>
