Skip to content

Instantly share code, notes, and snippets.

View dhavaln's full-sized avatar
💭
I may be slow to respond.

Dhaval Nagar dhavaln

💭
I may be slow to respond.
View GitHub Profile
@dhavaln
dhavaln / 0 README.md
Last active April 22, 2024 11:26
AWS Script Helper with Google Gemini Pro 1.5 and CrewAI

Requirements

I need to host a simple website to list out current services of my company and also share contact information. Please make sure to enable HTTPS and caching on the website. The website will be accessible from anywhere in the world. I would also like to configure some kind of cost alert to ensure that the overall spending is within a limit.

Agents

  • AWS Infrastructure and DevOps Specialist
  • AWS CloudFormation Engineer

Tools

  • Web Search
@dhavaln
dhavaln / 0 README.md
Last active April 20, 2024 04:50
LG TV App for Healthcare Solution

This Gist contains AI generated output by an experimental tool.

  • requirements is Human generated
  • questions is mixed output - original file is AI generated questions, later evaluated and answered by Human
  • technical-spec is generated by AI
  • summary is generated by AI

Please reach out to dhaval@appgambit.com for more detail or report issue.

@dhavaln
dhavaln / 1 requirements.md
Last active April 18, 2024 07:57
AWS Migration Project Analysis through SoftwareSpec.ai

Following requirements is given by the client:

The client is a Pharma company with number of physical facilities in a region. They have purchased a system for the Gate Entry that creates entry passes for visitors and also allows the regular workers to enter and exit the facility with records.

They want to move this application to AWS Cloud and access it from there. The decision to move this to the AWS Cloud came in from the high management as part of their Cloud Migration plan.

Below is the list of key features:

  • Lift and shift the current application to the AWS Cloud
  • Current application is hosting on local Windows 2016 Servers with Application Server and MS SQL Database Server
  • The software vendor from whom the application was purchased will help in the setup once the basic infrastrucure is created for them and made it accessible.
@dhavaln
dhavaln / 1 requirements.md
Last active April 18, 2024 04:57
Alexa Skill Analysis through SoftwareSpec.ai

Following requirements has been received from a client.

A city municipal organization wants to develope an innovative solution for this Christmas. They want to utilize Alexa Devices to build a Voice-based skill so that homeowners can use to request pickup Christmas Trees from their home locations for scrapping purpose. Normally, they have been using an IVR-based service where users would call and schedule the pickup. But they want to modernize that service and also add another feature of scheduling the tree pickup using Alexa devices.

Following is the list of key requirements:

  • Voice based Tree Pickup scheduling through Amazon Alexa devices
  • User can use English or Spanish to interact with the skill
  • Alexa skill will ask for few inputs like preferred day of the week and time slots
  • Alexa skill will automatically pickup address from the associated location but will ask for confiration from the user
@dhavaln
dhavaln / listener.js
Created February 16, 2024 07:17
AppSync NodeJS Websocket Subscription listener
'use client';
import WebSocket from 'ws';
let region = 'us-east-1';
let appsyncID = process.env.APPSYNC_ID;
let apiKey = process.env.APPSYNC_API_KEY
let url = `wss://${appsyncID}.appsync-realtime-api.${region}.amazonaws.com/graphql`
const api_header = {
@dhavaln
dhavaln / gist:8542e2652892deea758cd89c74fcd21a
Created November 8, 2023 06:14 — forked from davidnunez/gist:1404789
list all installed packages in android adb shell
pm list packages -f
@dhavaln
dhavaln / adb-logger.sh
Last active March 26, 2023 07:18
Download ADB Logs
#!/bin/bash
echo "Usage: adb-logger <device ip:port> <file path with name>"
echo "Example: ./adb-logger 192.168.0.237:5555 ./device-logs/192.168.0.237"
waittime=60
device=$1
while :
do
@dhavaln
dhavaln / README.md
Last active January 27, 2023 04:48
MongoDB Replicaset Compose

Deploy Containers

Prepare the data directory:

sudo mkdir -p -m 777 mongo/primary
sudo chown -R 1001 mongo 
@dhavaln
dhavaln / mongodb-rs-docker-compose.yml
Created January 19, 2023 11:31
Mongodb Replicaset for Swarm
services:
# first, we define the three mongo servers that will act as replicas
# here, we steup the hostname ports, and startup command
# which is the same as discussed in the previous section
mongo1:
hostname: mongo1
image: mongo
expose:
- 27017
ports:
@dhavaln
dhavaln / serverless.yml
Created October 10, 2022 06:25
Serverless framework AppSync service with custom split stacks
custom:
splitStacks:
nestedStackCount: 50
perFunction: false
perType: false
perGroupFunction: false