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 / Dockerfile
Created October 13, 2019 10:45
Simple NodeJS Multistage Build
FROM node:10 as build
MAINTAINER dhavaln
LABEL description="This is a multi-stage NodeJS image"
WORKDIR /src
COPY package*.json .
RUN npm install
COPY . .
FROM node:10-slim
WORKDIR /src
@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 / download_test.html
Created July 5, 2012 17:59
Cordova (1.7.0, 1.8.1 and 1.9.0) File Download Test
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="lib/android/cordova-1.7.0.js"></script>
<script type="text/javascript">
window.appRootDirName = "download_test";
document.addEventListener("deviceready", onDeviceReady, false);
@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 / Setup & Install
Last active October 10, 2023 13:49
Setting up HAProxy on Mac OSX
Install HAProxy from Homebre:
`brew install haproxy`
For full reference:
https://serversforhackers.com/load-balancing-with-haproxy
@dhavaln
dhavaln / install_docker_ec2.sh
Last active October 3, 2023 13:52
Install Docker on EC2
#! /bin/sh
yum update -y
amazon-linux-extras install docker
service docker start
usermod -a -G docker ec2-user
chkconfig docker on