Skip to content

Instantly share code, notes, and snippets.

View munim's full-sized avatar

Abdul Munim munim

View GitHub Profile
@munim
munim / sendemailwithattachment.md
Last active September 4, 2022 12:05
Send Email with Zip attachment having multiple files through Amazon SES using NodeJS

Send Email with Zip attachment having multiple files through Amazon SES using NodeJS

We want to send an email with the following requirements:

  1. Email to have an Zip attachment.
  2. Zip file containing multiple log files
  3. Email needs to go through Amazon SES.
  4. Implementation to be done using NodeJS

We will use the following NodeJS library

  1. NodeMailer
@munim
munim / lnav-aem.md
Last active October 1, 2023 20:15
LNav format for Adobe Experience Manager (AEM)

LNav format for Adobe Experience Manager (AEM)

This is log format for https://lnav.org.

Regex can be improved but it works quite well for me. Send me pull requests if you have a better soution.

{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "aem": {
@munim
munim / llm_chat.md
Last active September 3, 2025 12:35
LLM CLI helper script to run commands

LLM CLI helper script

A Bash script for running llm with templates, prompts, and models. It’s flexible. You can start a new chat, continue an old one, or use a template. It works with plain prompts or lets you write in your editor.

What it does

If you use -c, it continues the last chat. You can give a prompt or write one in your editor.

If you use -m model, it picks that model for llm.