<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Utsargo Roy on Medium]]></title>
        <description><![CDATA[Stories by Utsargo Roy on Medium]]></description>
        <link>https://medium.com/@royutsargo?source=rss-b99f4b546af8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kxdXtdp2vDDBj3gLU4yEFQ.jpeg</url>
            <title>Stories by Utsargo Roy on Medium</title>
            <link>https://medium.com/@royutsargo?source=rss-b99f4b546af8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:21:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@royutsargo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Automating Domain Renewal Reminders with Google Sheets and Apps Script]]></title>
            <link>https://medium.com/@royutsargo/automating-domain-renewal-reminders-with-google-sheets-and-apps-script-a29f409b387a?source=rss-b99f4b546af8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a29f409b387a</guid>
            <category><![CDATA[set-automaitic-reminder]]></category>
            <category><![CDATA[domain-renewal-reminder]]></category>
            <category><![CDATA[google-sheets]]></category>
            <dc:creator><![CDATA[Utsargo Roy]]></dc:creator>
            <pubDate>Thu, 04 Sep 2025 12:55:44 GMT</pubDate>
            <atom:updated>2025-09-04T12:55:44.840Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KU7vE7LSMK4HE7F8FoQvYg.png" /></figure><p>Managing multiple domains across different registrars can quickly become overwhelming. Missing a renewal date could mean losing a valuable domain name. While many registrars send renewal alerts, having your own centralized reminder system ensures you never miss an important deadline.</p><p>In this post, I’ll walk you through how I set up <strong>Google Sheets + Google Apps Script</strong> to automatically send reminder emails before each domain’s renewal date.</p><h3>Why Google Sheets?</h3><p>Google Sheets is perfect for lightweight tracking. You can keep all your domains, registrars, renewal dates, and notification emails in one place. Apps Script (built into Sheets) allows us to extend functionality with automation — in this case, sending emails.</p><p>Here’s what my sheet looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*qjpTKVgj9wvD4hbxwbXHjw.png" /></figure><h3>The Reminder Logic</h3><p>Each domain should trigger <strong>four reminder emails</strong>:</p><ul><li><strong>3 months before renewal</strong></li><li><strong>1 month before renewal</strong></li><li><strong>15 days before renewal</strong></li><li><strong>7 days before renewal</strong></li></ul><p>The script will run once a day. If today matches one of the reminder dates, it sends an email to the addresses listed in the <strong>Notify</strong> column.</p><h3>The Apps Script</h3><p>Inside your Google Sheet, go to <strong>Extensions → Apps Script</strong>, delete any placeholder code, and paste this:</p><pre>function sendDomainReminders() {<br>  var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Sheet1&quot;);<br>  var data = sheet.getDataRange().getValues();<br>  var today = new Date();<br>for (var i = 1; i &lt; data.length; i++) {<br>    var domain = data[i][0];<br>    var registrar = data[i][1];<br>    var dueDate = new Date(data[i][2]);<br>    var notifyList = data[i][3];<br>    if (!dueDate || !notifyList) continue;<br>    var reminderDays = [90, 30, 15, 7];<br>    for (var j = 0; j &lt; reminderDays.length; j++) {<br>      var reminderDate = new Date(dueDate);<br>      reminderDate.setDate(reminderDate.getDate() - reminderDays[j]);<br>      if (isSameDay(today, reminderDate)) {<br>        var subject = `Domain Renewal Reminder (${reminderDays[j]} days left): ${domain}`;<br>        var htmlBody = `<br>          &lt;p&gt;Hello,&lt;/p&gt;<br>          &lt;p&gt;This is a reminder that your domain <br>          &lt;strong&gt;${domain}&lt;/strong&gt; (Registrar: ${registrar}) <br>          is due for renewal on &lt;strong&gt;${dueDate.toDateString()}&lt;/strong&gt;.&lt;/p&gt;<br>          &lt;p&gt;Please take the necessary action to renew your domain before the due date.&lt;/p&gt;<br>          &lt;hr&gt;<br>          &lt;p style=&quot;font-size:12px;color:#666;&quot;&gt;<br>            This is an automated reminder from your &lt;em&gt;Domain Management System&lt;/em&gt;.<br>          &lt;/p&gt;<br>        `;<br>        var emails = notifyList.split(&quot;,&quot;);<br>        for (var k = 0; k &lt; emails.length; k++) {<br>          MailApp.sendEmail({<br>            to: emails[k].trim(),<br>            subject: subject,<br>            htmlBody: htmlBody,<br>            body: htmlBody.replace(/&lt;[^&gt;]+&gt;/g, &#39;&#39;) // plain text fallback<br>          });<br>        }<br>      }<br>    }<br>  }<br>}<br>function isSameDay(date1, date2) {<br>  return (<br>    date1.getFullYear() === date2.getFullYear() &amp;&amp;<br>    date1.getMonth() === date2.getMonth() &amp;&amp;<br>    date1.getDate() === date2.getDate()<br>  );<br>}</pre><ol><li>In the Apps Script editor, go to <strong>Triggers (⏰ icon)</strong>.</li><li>Add a new trigger:</li></ol><ul><li>Function: sendDomainReminders</li><li>Event source: <strong>Time-driven</strong></li><li>Type: <strong>Day timer</strong> → e.g., 8:00 AM daily</li></ul><p>Now, the script runs automatically every day, checking for upcoming renewal reminders and sending emails when needed.</p><p><strong><em>Important: </em></strong><em>Google will ask permission to allow the scirpt, just allow it.</em></p><h3>Testing</h3><p>Before letting it run live, you can:</p><ul><li>In a row set data for a test domain, somethig like testdomain.com and set the renewal date 7 days from today.</li><li>Then, in your script editor hit the run button.</li></ul><p>This helps confirm everything looks good before spamming your team.</p><h3>Final Thoughts</h3><p>With just a spreadsheet and a few lines of Apps Script, you now have a lightweight but powerful <strong>domain renewal reminder system</strong>. No more scrambling last-minute when registrars send their notices — you’ll be ahead of the game with four timely reminders.</p><p>This setup can also be adapted for SSL certificates, subscriptions, or any other recurring deadlines.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a29f409b387a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Automated Let’s Encrypt SSL for My cPanel Domain Using acme.sh]]></title>
            <link>https://medium.com/@royutsargo/how-i-automated-lets-encrypt-ssl-for-my-cpanel-domain-using-acme-sh-a6fff5fd0f7a?source=rss-b99f4b546af8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6fff5fd0f7a</guid>
            <category><![CDATA[ssl-certificate]]></category>
            <category><![CDATA[lets-encrypt]]></category>
            <category><![CDATA[cpanel]]></category>
            <dc:creator><![CDATA[Utsargo Roy]]></dc:creator>
            <pubDate>Fri, 29 Aug 2025 17:17:55 GMT</pubDate>
            <atom:updated>2025-08-29T17:17:55.826Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*azt0RJuBsBiKG83cnAKadw.png" /></figure><p>If you’ve ever hosted your site on a shared cPanel server, you’ve probably faced this: <strong>SSL certificates are a pain</strong>.</p><p>Sure, cPanel has AutoSSL, but sometimes it doesn’t work for certain subdomains (especially mail servers, custom hostnames, or wildcard domains). Other times, the hosting provider wants you to pay for SSL even though <strong>Let’s Encrypt</strong> gives it for free.</p><p>That’s exactly the problem I faced when setting up SSL for my domain. As you know, you cannot proxy some DNS entries like mail.yourdomain.com in <strong>Cloudflare</strong>, you have use a certificate separately for those. In my case, it was a shared hosting on <strong>Namecheap</strong> which has no support for auto-renewable SSL certificate from Let’s encrypt and I needed a certificate for my mail subdomain. I wanted <strong>full control</strong>, free certificates from <strong>Let’s Encrypt</strong>, and — most importantly — <strong>automatic renewal</strong> so I’d never have to worry about expired certificates again.</p><p>After a lot of digging, trial, and error, I found the perfect solution: <strong>acme.sh</strong>, a lightweight, powerful shell script client for Let’s Encrypt.</p><h3>Step 1: Why acme.sh?</h3><p>There are many ways to get Let’s Encrypt certificates: Certbot, dehydrated, etc. But acme.sh stood out because:</p><ul><li>It’s <strong>100% bash</strong> — no Python or heavy dependencies.</li><li>It supports <strong>DNS-based validation</strong>, which is perfect for wildcard domains like *.example.com.</li><li>It has <strong>built-in deployment hooks for cPanel</strong>, so I don’t have to copy-paste certificates manually every 90 days.</li><li>It installs itself neatly in my home directory (~/.acme.sh) and manages renewals with cron.</li></ul><p>Basically: it “just works.”</p><h3>Step 2: Installing acme.sh on cPanel via SSH</h3><p>First, I SSH’d into my cPanel hosting account. If you don’t have SSH access, this method won’t work — but most decent hosts allow it.</p><p>Then I ran:</p><pre>curl https://get.acme.sh | sh</pre><p>Boom. Installation done.<br> The installer automatically created a ~/.acme.sh/ folder and even suggested adding a cron job for auto-renewals.</p><h3>Step 3: Issuing the Certificate</h3><p>My DNS is managed by Cloudflare, so I went with DNS validation. This is the only way to get wildcard SSL (*.domain.com) from Let’s Encrypt.</p><p>I created a Cloudflare API token (with DNS edit permissions) and exported it:</p><pre>export CF_Token=&quot;your_cloudflare_api_token&quot;<br>export CF_Account_ID=&quot;your_cf_account_id&quot;</pre><p>Then I issued the certificate:</p><pre>~/.acme.sh/acme.sh --issue --dns dns_cf -d thoughtsmate.com -d &#39;*.thoughtsmate.com&#39;</pre><p>This told Let’s Encrypt: <em>“Hey, prove I own both </em><em>thoughtsmate.com and any subdomain under it.”</em></p><p>Cloudflare took care of the DNS challenge automatically, and a few seconds later, my shiny new certificates were ready 🎉.</p><h3>Step 4: Deploying to cPanel</h3><p>Now, certificates are useless if they don’t actually get installed. Manually pasting them into WHM/cPanel every three months? No thanks.</p><p>Luckily, acme.sh comes with a <strong>cPanel deploy hook</strong>. I simply ran:</p><pre>~/.acme.sh/acme.sh --deploy -d thoughtsmate.com --deploy-hook cpanel_uapi</pre><p>It used cPanel’s <strong>UAPI</strong> to push the certs directly into my hosting account. No manual steps. No copy-paste headaches.</p><h3>Step 5: Auto-Renewal</h3><p>Here’s the magic: acme.sh installs a cron job automatically. You can check it with:</p><pre>crontab -l</pre><p>You’ll see something like:</p><pre>0 0 * * * &quot;/home/username/.acme.sh&quot;/acme.sh --cron --home &quot;/home/username/.acme.sh&quot; &gt; /dev/null</pre><p>This means <strong>every night at midnight</strong>, acme.sh checks if any certificates are due for renewal. If yes, it renews them <em>and redeploys them to cPanel automatically</em>.</p><p>I don’t have to lift a finger. Ever again.</p><h3>Step 6: Testing Renewal</h3><p>Of course, I wanted to make sure it really works. So I tested renewal manually:</p><pre>~/.acme.sh/acme.sh --renew -d thoughtsmate.com --force</pre><p>It renewed and deployed flawlessly. ✅</p><h3>Lessons Learned</h3><ul><li>cPanel’s AutoSSL isn’t always reliable (especially for wildcard and mail subdomains).</li><li>acme.sh is lightweight, elegant, and surprisingly powerful.</li><li>DNS validation with Cloudflare is a lifesaver for wildcard domains.</li><li>With the deploy hook + cron, SSL management becomes <strong>completely hands-free</strong>.</li></ul><h3>Final Thoughts</h3><p>This setup felt like magic the first time it worked. No more dreaded SSL expiration warnings. No more digging around cPanel to paste certificates.</p><p>If you’re using cPanel hosting, Cloudflare DNS, and want Let’s Encrypt certificates that renew automatically: <strong>install acme.sh inside your hosting account, set up DNS validation, and use the cPanel deploy hook</strong>.</p><p>Trust me — you’ll thank yourself in three months when you realize your SSL just renewed on its own.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6fff5fd0f7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My learning experience at Microverse]]></title>
            <link>https://medium.com/@royutsargo/my-learning-experience-in-microverse-eccf1759ad0c?source=rss-b99f4b546af8------2</link>
            <guid isPermaLink="false">https://medium.com/p/eccf1759ad0c</guid>
            <category><![CDATA[microverse]]></category>
            <category><![CDATA[pair-programming]]></category>
            <category><![CDATA[full-stack-bootcamp]]></category>
            <category><![CDATA[online-learning-platform]]></category>
            <category><![CDATA[soft-skills-training]]></category>
            <dc:creator><![CDATA[Utsargo Roy]]></dc:creator>
            <pubDate>Wed, 08 Feb 2023 06:32:27 GMT</pubDate>
            <atom:updated>2023-02-08T06:44:31.572Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gjeDeRHNndGNnzPaYZQW1w.jpeg" /></figure><p><strong>So, why </strong><a href="https://www.microverse.org/?grsf=utsargo-1cxq1e"><strong>Microverse</strong></a><strong>?</strong></p><p><a href="https://www.microverse.org/?grsf=utsargo-1cxq1e">Microverse</a> is an online school for remote software developers where you pay nothing until you land a life-changing job. No matter where you live. A few months ago, I could not even think that I could learn so many things in such a short period. It’s a new, unique, and very exciting way of learning for me. Besides technical skills like pair programming, programming languages, and their best practices we are also learning many soft skills like cross-cultural communication, conflict management, organizing resumes and portfolios, and many other things.</p><p>Honestly speaking, I could not imagine it will be this intense and joyful simultaneously. The main thing I appreciate the most about this course is collaboration. Every week I meet new people from all over the world and make new friends. This course will certainly end someday, but these friendships and connections will sustain. That’s the greatest benefit of joining <a href="https://www.microverse.org/?grsf=utsargo-1cxq1e">Microverse</a>. Another thing I must mention is, <a href="https://www.microverse.org/?grsf=utsargo-1cxq1e">Microverse</a> helped me to be a better human also. I learned so much about harassment, cultural stereotyping, professional etiquette, etc. which made me a gentler, kinder, and more patient version of myself. The most important thing is you will learn how to learn. Now I’m confident that whatever you throw at me I’ll learn that in the shortest possible time. It’s very important because you know, in this ever-growing industry learning new things is not a skippable option, it’s mandatory no matter how much you know.</p><p>No matter how much I tell about it, it’s not enough when it’s about <a href="https://www.microverse.org/?grsf=utsargo-1cxq1e">Microverse</a>. In this short volume, I discussed some key topics of the learning experience on <a href="https://www.microverse.org/?grsf=utsargo-1cxq1e">Microverse</a> which I valued the most. Hope it will encourage those who joined here recently or are yet to join. Trust me, It will change your life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eccf1759ad0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>