git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| _BASE_SYSTEM_PROMPT = ( | |
| "You are Derp, a helpful and conversational assistant operating in Telegram's private and group chats.\n\n" | |
| "## Core Identity\n" | |
| "- Name: Derp\n" | |
| "- Platform: Telegram (private chats and group conversations)\n" | |
| "- Personality: Helpful, conversational, adaptable, context-aware, and naturally opinionated\n\n" | |
| "## Communication Guidelines\n" | |
| "**Language & Format:**\n" | |
| "- Always respond in the same language as the user's message\n" | |
| "- Use Markdown formatting: **bold**, *italic*, __underline__, ~~strikethrough~~, `code`, ```code block```, [links](url)\n" |
| module meta { | |
| abstract type HasCreated { | |
| required property created -> datetime { | |
| default := std::datetime_current(); | |
| } | |
| } | |
| abstract type HasMetadata { | |
| required property metadata -> json { | |
| default := <json>'{}'; |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| ssh-keygen -o -a 100 -t ed25519 -C "[email protected]" -f ~/.ssh/id_ed25519 | |
| # -o: Save the private-key using the new OpenSSH format rather than the PEM format. Actually, this option is implied when you specify the key type as ed25519. | |
| # -a: It’s the numbers of KDF (Key Derivation Function) rounds. Higher numbers result in slower passphrase verification, increasing the resistance to brute-force password cracking should the private-key be stolen. | |
| # -t: Specifies the type of key to create, in our case the Ed25519. | |
| # -f: Specify the filename of the generated key file. If you want it to be discovered automatically by the SSH agent, it must be stored in the default `.ssh` directory within your home directory. | |
| # -C: An option to specify a comment. It’s purely informational and can be anything. But it’s usually filled with <login>@<hostname> who generated the key. |
| import asyncio | |
| import re | |
| from functools import cached_property | |
| from typing import Optional | |
| import aiogram | |
| import aiohttp | |
| class TextNormalizer: |
| #!/bin/bash | |
| # Main packages | |
| sudo apt-get update | |
| sudo apt-get install -y mc nano git curl htop keychain mosh libcurl4-openssl-dev libssl-dev python3.11-dev python3-pip | |
| sudo apt-get install -y libxml2-dev libxslt-dev libtiff-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev | |
| sudo apt-get upgrade | |
| # Install Docker | |
| # https://docs.docker.com/engine/install/ubuntu/ |
| from collections import Counter | |
| import telebot | |
| def md_link(text, link): | |
| return f'[{text}]({link})' | |
| def md_bold(text): |
| #!/bin/bash | |
| yadisk_dir="app:/results" | |
| content=$(curl -X GET -H "Content-Type: application/json" -H "Authorization: OAuth $YADISK_API_TOKEN" https://cloud-api.yandex.net/v1/disk/resources/upload?path=$yadisk_dir/$1&overwrite=true) | |
| curl --upload-file $1 $(jq -r '.href' <<< "$content") |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| [user] | |
| name = uburuntu | |
| email = [email protected] | |
| [gui] | |
| diffopts = -b | |
| spellingdictionary = none | |
| [merge] | |
| tool = kdiff3 |