Skip to content

Instantly share code, notes, and snippets.

View rayyildiz's full-sized avatar

Ramazan AYYILDIZ rayyildiz

View GitHub Profile
FROM python:3.10-slim
WORKDIR /apps
RUN apt-get update && apt-get install -y git
COPY ./requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY . .

Chatgpt demo with OpenLLaMa

LLM chat example using llama_3b

Setup

Install Anaconda and create a new env.

@rayyildiz
rayyildiz / README.md
Last active December 31, 2023 16:12
docker-compose for elasticsearch

Elasticsearch version is 6.3.1

Setup

Install latest version of docker.

download docker-compose.yaml and start elasticsearch.

# The .editorconfig is used to maintain consistent code style.
# The .editorconfig file is supported by most text editors.
# See https://editorconfig.org
root = true
[*]
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
@rayyildiz
rayyildiz / Dockerfile
Last active January 16, 2023 08:24
Custom runtime for spring boot app
FROM eclipse-temurin:17 as jre-build
RUN $JAVA_HOME/bin/jlink \
--add-modules java.base,java.sql,java.naming,java.desktop,java.management,java.security.jgss,java.instrument \
--strip-debug \
--no-man-pages \
--no-header-files \
--compress=2 \
--output /javaruntime
@rayyildiz
rayyildiz / README.md
Created December 17, 2021 10:26
Postgres
@rayyildiz
rayyildiz / README.md
Last active March 3, 2021 12:15
Performance test in go

Go perf test

create table names (
   id serial primary key,
   name text
);

Install wrk and run perf test.

Keybase proof

I hereby claim:

  • I am rayyildiz on github.
  • I am rayyildiz (https://keybase.io/rayyildiz) on keybase.
  • I have a public key ASDaBsDCfuRAqNzowsCscBqeFikUThbNa8L9WuuNeQ2udwo

To claim this, I am signing this object:

class ApiException extends Exception {}
@FunctionalInterface
interface ServiceBlock<T> {
T call() throws ApiException;
}
@FunctionalInterface