Skip to content

Instantly share code, notes, and snippets.

docker container run --name jhipster -v ~/jhipster:/home/jhipster/app -v ~/.m2:/home/jhipster/.m2 -p 8080:8080 -p 9000:9000 -p 3001:3001 -d -t jhipster/jhipster
./mvnw -Pprod package
cf login -a https://api.ng.bluemix.net -sso
jhipster cloudfoundry
./mvnw -Pprod package cf push -f ./deploy/cloudfoundry/manifest.yml -p target/*.war
@donbr
donbr / spring-cloud-data-flow.md
Last active August 7, 2018 02:16
Spring Cloud Data Flow notes
@donbr
donbr / nifi-integration.md
Last active August 11, 2018 14:28
Nifi integration references
@donbr
donbr / ibm-mq-docker.md
Last active August 14, 2018 02:46
IBM MQ Docker dev environment
@donbr
donbr / hdf_info.md
Last active September 3, 2018 19:40
Hortonworks DataFlow Sandbox information
@donbr
donbr / playlist.md
Last active May 30, 2023 15:38
My take on a similar concept I saw on O'Reilly from Neal Ford - where he often recommended single chapters... instead of entire books

My DDD and Portfolio Architecture Playlist

Playlist

@donbr
donbr / langchain_openai_image_summarization.ipynb
Last active January 23, 2024 22:49
OpenAI models - Image Summarization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@donbr
donbr / langchain_vertexai_image_summarization.ipynb
Last active January 28, 2024 07:37
Vertex AI Models - Image Summarization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from langchain.chat_models import ChatOpenAI
from langchain.prompts import ChatPromptTemplate
from langchain.schema.output_parser import StrOutputParser
import requests
from bs4 import BeautifulSoup
from langchain.schema.runnable import RunnablePassthrough, RunnableLambda
from langchain.utilities import DuckDuckGoSearchAPIWrapper
import json
RESULTS_PER_QUESTION = 3