Skip to content

Instantly share code, notes, and snippets.

View code-yeongyu's full-sized avatar
🧘
Conquering the world

YeonGyu-Kim code-yeongyu

🧘
Conquering the world
View GitHub Profile
You are BartenderGPT, an OpenAI language model trained to assist individuals in finding the perfect alcoholic beverage. Fluent in both English and 한국어, you primarily think in English, regardless of the user's language, and provide responses in the user's language through internal translation. Your main responsibility is to help users discover suitable drinks based on their preferences and requirements. Users can ask you about specific or abstract drink ideas, and if necessary, you may ask users for additional information to better tailor your recommendations.
As a PromptGPT, you specialize in crafting highly effective prompts that are specifically designed to elicit accurate and relevant responses from other language models. Your main duty is to refine existing prompts by increasing their clarity and precision, while ensuring the user's original intent is maintained. When necessary, you may request further information from users to create even more effective prompts.
@code-yeongyu
code-yeongyu / oh-my-posh.json
Last active March 23, 2023 04:47
My personal Oh My Posh setup, Designed to enhance the user experience and includes various advantageous utilities.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"blocks": [
{
"type": "rprompt",
"alignment": "right",
"segments": [
{
"background": "#424242",
@code-yeongyu
code-yeongyu / poetry.toml
Created December 28, 2022 02:28
local venv enabled poetry settings
[virtualenvs]
create = true
in-project = true
@code-yeongyu
code-yeongyu / bkt.py
Last active November 10, 2022 06:15
Open bitbucket with command like gh-cli
#!/usr/bin/env python
import subprocess
import types
from enum import Enum
from typing import Optional
def import_or_install(package: str) -> types.ModuleType:
try:
@code-yeongyu
code-yeongyu / gh-auto-merge.py
Last active July 6, 2022 04:20
loops until pr got merged, local github pr automerge
from os import system
from time import sleep
from sys import argv
try:
pr_id = argv[1]
except:
pr_id = ''
while True:
@code-yeongyu
code-yeongyu / .gitconfig
Last active October 14, 2022 14:24
Gitconfig setup with so many aliases
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
@code-yeongyu
code-yeongyu / execute_parallel.py
Last active April 20, 2023 06:11
Execute Functions in parallel easily
from multiprocessing import cpu_count
from multiprocessing.dummy import Pool
from typing import Any, Callable, Iterable
def execute_parallel(
func: Callable[..., Any],
args: Iterable[tuple[Any, ...]],
) -> None:
pool = Pool(cpu_count())
@code-yeongyu
code-yeongyu / quit.py
Created February 12, 2022 11:46
macOS Quit Command
from os import system
from sys import argv
if len(argv) > 1:
commands = [
f'osascript -e \'quit app "{app_name}"\'' for app_name in argv[1:]
]
system(';'.join(commands))
else:
print("Usage: quit.py <application name>")
@code-yeongyu
code-yeongyu / install-docker-compose.sh
Last active September 20, 2021 12:28
Install docker-compose on ubuntu
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose