Skip to content

Instantly share code, notes, and snippets.

View jakubkalicki's full-sized avatar
🌎
Open for new opportunities

Jakub Kalicki jakubkalicki

🌎
Open for new opportunities
View GitHub Profile
const API_URL = "https://api.openai.com/v1/chat/completions";
const MAX_TOKENS = 1500;
const TEMPERATURE = 0.5;
const SYSTEM_PROMPT = 'Act as assistant';
const MESSAGES = ["hello", "hi!", "how are you?"];
async function openAICompletion(msg) {
const options = {
method: "POST",
headers: {
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active May 10, 2024 07:16
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.