Skip to content

Instantly share code, notes, and snippets.

View tae0y's full-sized avatar

박태영 tae0y

  • Seoul
  • 17:42 - 9h ahead
View GitHub Profile
@tae0y
tae0y / ollama_rag_on_colab_demo_ver1-00.ipynb
Created May 31, 2024 11:04
ollama_RAG_on_colab_demo_ver1.00.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tae0y
tae0y / openssl_-_.ipynb
Created September 8, 2023 01:05
openssl_체인인증서_다운로드방법.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tae0y
tae0y / langchain_openai_faiss_chatbot_test.md
Last active May 17, 2023 17:29
langchain, opeanai, faiss를 활용한 챗봇 개념증명

langchain_openai_faiss_chatbot_test

  • langchain, opeanai, faiss를 활용한 챗봇 개념증명으로, 제 json 데이터를 llm 활용해 시멘틱 검색할 수 있습니다.
  • 아래 코드는 openai api를 사용하는데, 언어모델을 바꿔서 완전히 로컬에서 동작할 수도 있습니다 (임베딩할때 사용량이 많았는지 4.7달러 과금, 지금은 질문응답하면 2건당 0.01정도 과금)
  • 응답 예시 image

소스설명, 약간 변경한 부분

  • 질의문/프롬프트
    • 책은 컨텍스트로 제공된 것 중에서만 골라줘
@tae0y
tae0y / tcptrace.py
Last active October 4, 2024 15:11
tcptrace.py in python 310 with scapy
import sys
import scapy.all as scapy
import os
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN = '\033[92m'
@tae0y
tae0y / imax-finder_v230113.js
Created January 13, 2023 13:00
imax-finder_v230113
const puppeteer = require('puppeteer');
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: '<메일주소>',
pass: '<메일비밀번호 또는 앱토큰>'
}
});
@tae0y
tae0y / 3주차리뷰.md
Last active February 18, 2022 14:29
3주차 리뷰

무엇을 했나요?

  • 이번주에 목표로 한 것

    • api 구조가 동일한 새로운 vue 프로젝트를 만들고, 여러가지 ui 컴포넌트를 실험해보기
    • 회원가입, 로그인, 비밀글 조회시 사용자 인증 등 사용자 관련 기능이 동작하도록 수정해보기
  • 실제로 한 것

    • axios를 사용해 Q&A 게시판 목록을 불러오고, 중첩된 router-view로 화면을 이동하지 않고 보여주기, skeleton을 적용해 로딩화면 구성.
    • 회원가입은 가능하지만, 로그인 기능은 작동하지 않음. null 예외 발생.
@tae0y
tae0y / Solution.java
Created January 2, 2022 15:02
2019 카카오 블라인드 문제풀이
import java.util.ArrayList;
import java.util.HashMap;
public class Solution {
public void _test() {
System.out.println(arrayCompare(solution(
new String[]{"Enter uid1234 Muzi", "Enter uid4567 Prodo","Leave uid1234","Enter uid1234 Prodo","Change uid4567 Ryan"}),
new String[]{"Prodo님이 들어왔습니다.", "Ryan님이 들어왔습니다.", "Prodo님이 나갔습니다.", "Prodo님이 들어왔습니다."}));
}
@tae0y
tae0y / ConcurrentModificatonExceptionExample.java
Created December 18, 2021 01:53
자바 스트림 예제코드
import java.util.ConcurrentModificationException;
import java.util.List;
import java.util.stream.IntStream;
import static java.util.stream.Collectors.toList;
public class Main {
public static void main(String[] args){
//new CollectorExercise()._test();
@tae0y
tae0y / MeaningOfThis.java
Created December 5, 2021 14:09
자바 this 키워드의 의미
public static class MeaningOfThis {
public final int value = 4;
public void doIt() {
int value = 6;
Runnable r = new Runnable() {
public final int value = 5;
@Override
public void run() {
int value = 10;
System.out.println(value);
import java.util.Scanner;
public class BOJ2661 {
public static void main(String args[]) {
Scanner sc = new Scanner(args[0]);
//Scanner sc = new Scanner(System.in);
int N = sc.nextInt(); //1..80, of 1/2/3
String nums = searchGood("", N);
System.out.println(nums);