This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"version": 2, | |
"blocks": [ | |
{ | |
"type": "rprompt", | |
"alignment": "right", | |
"segments": [ | |
{ | |
"background": "#424242", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[virtualenvs] | |
create = true | |
in-project = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import system | |
from time import sleep | |
from sys import argv | |
try: | |
pr_id = argv[1] | |
except: | |
pr_id = '' | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |