Skip to content

Instantly share code, notes, and snippets.

View premierrt's full-sized avatar

Premier R premierrt

View GitHub Profile
@premierrt
premierrt / openai_call.json
Created November 11, 2023 20:06 — forked from iceener/openai_call.json
OpenAI Function Calling (parameters)
{
"model": "gpt-3.5-turbo-0613",
"function_call": {
"name": "query_enrichment"
},
"messages": [
{
"role": "user",
"content": "Write a newsletter."
}
semicolon in bash - inline for
for i in `ps aux | grep java | awk '{ print $2 }'`; do echo $i; kill $i ; done
https://unix.stackexchange.com/questions/48805/semicolon-in-conditional-structures
@premierrt
premierrt / dialogflow to do
Last active January 29, 2019 16:37
Dialoglow
[v] rest get
redis konfiguracja intentow lub statyczna zaleznosci od profilu
jpa- zapytnie wyszukujące po okreslonej dacie
gists w eclipsie
qualifier ??? https://www.baeldung.com/spring-autowire
OO java - extends and implemnets - nie mozna pozniej przy deklarowaniu klasy uzyc intefejsu...
solid
-integracja przez rabit i kafka
-przejscie na serwice discovery, configi, feign, spring cloud
Ctrl + click
https://www.jetbrains.com/help/idea/2017.1/navigating-to-class-file-or-symbol-by-name.html
--jak nie działa to przechodzenie pomiedzy klasami to:
Right-click src folder
Mark Directory as > Sources Root
http://stackoverflow.com/questions/37282285/intellij-cannot-find-any-declarations
1
http://stackoverflow.com/questions/11708967/what-is-the-difference-between-applicationcontext-and-webapplicationcontext-in-s
2
http://stackoverflow.com/questions/3652090/difference-between-applicationcontext-xml-and-spring-servlet-xml-in-spring-frame
Ad 1
This allows you to run some services as the singletons for the entire application (Spring Security beans and basic database access services typically reside here) and another as separated services in the corresponding servlets to avoid name clashes between beans. For example one servlet context will be serving the web pages and another will be implementing a stateless web service.
This two level separation comes out of the box when you use the spring servlet classes: to configure the root application context you should use context-param tag in your web.xml
https://spring.io/blog/2009/12/02/obtaining-spring-3-artifacts-with-maven/
http://www.tomjewett.com/dbdesign/dbdesign.php?page=aggregate.php
System <>----Component
The system is an aggregation of components.
Component ma kolumne FK System_id. wskazującą na system do którego należy.
@premierrt
premierrt / swagger
Last active February 23, 2017 08:09
https://indrabasak.wordpress.com/2016/04/07/swagger-2-integration-with-spring-rest/
annotacje:
https://jakubstas.com/spring-jersey-swagger-create-documentation/#.WKwNLrLhCpo
------
servlet disptacher
--------
<!-- Direct static mappings -->
external liby dla hybrisa musza byc w katalogu /lib projektu.
dlatego trzeba dodac do mavena kopiowanie do tego katalogu, zeby ant mogl je widziec.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>rafalRest1</groupId>
<artifactId>rafalRest1</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<sourceDirectory>src</sourceDirectory>
ustawienia proxy w settings.xml
Preferences ->Maven-> User Settings
http://www.vogella.com/tutorials/EclipseMaven/article.html#convert-to-maven-project
1. Right-click the pom.xml file and select Run As ▸ Maven build.
2. Enter "dependency:resolve" as Goal.