Chris Padilla/Blog

My passion project! Posts spanning music, art, software, books, and more
You can follow by RSS! (What's RSS?) Full archive here.

    Oatchi

    What a gooooood boy!

    Oatchi from Pikmin 4 is THE BEST! When ever Lucy is being a rascal, I've started telling her "No, be like Oatchi!"


    Triggering Notifications through Github Actions

    My Mom and Dad are not on RSS (surprising, I know!) Nor are they on Instagram or Twitter or anywhere! But, naturally, they want to stay in the loop with music and art!

    I've done a bit of digging to see how I could set up a notification system. Here's what I've got:

    This blog is updated through pushing markdown files to the GitHub repo. That triggers the build over on Vercel where I'm hosting things. So, the push is the starting point. I can:

    1. Call a script with github-script
    2. From said script, scan for the latest post.
    3. Grab the relevant content (an image or video link)
    4. Integrate with my messaging system of choice, either:
      • Twilio to send a text
      • Amazon Simple Email Service

    The config for github scripts is very straightforward:

    name: Hey Mom
    
    on: [push]
    
    jobs:
      hey-mom:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v3
          - uses: actions/github-script@v7
            with:
              script: |
                const script = require('./.github/scripts/heyMom.js')
                console.log(script({github, context}))
    ./.github/workflows/heymom.yml

    The one concern I have here is external dependencies. From my preliminary research, it's best to keep the GitHub Action light without any dependencies. Mostly, I want it to find the content quickly, and send it off so the website can finish up the deploy cycle.

    This would be a great case for passing that off to AWS Lambda. The lambda can take in the link and message body, load in dependencies for integrating with the service, and send it off from there.

    Though, as I write this now, I'm forgetting that Vercel, of course, is actually handling the build CI. This GitHub action would be separate from that process.

    Well, more to research! No code ready for this just yet, but we'll see how this all goes. Maybe the first text my folks get will be the blog post saying how I developed this. 🙂


    What is Divine

    Vocation, even in the most humble of circumstances, is a summons to what is divine. Perhaps it is the divinity in us that wishes to be in accord with a larger divinity. Ultimately, our vocation is to become ourselves, in the thousand, thousand variants we are.

    From Finding Meaning in the Second Half of Life by James Hollis.


    Stella By Starlight

    Listen on Youtube

    That great symphonic theme... That's Stella by starlight~


    Valentine

    Couple of cuties

    Had a lovely Valentine's Day with Miranda 💙