Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| ai [2024/03/24 23:15] – [искусственный интеллект ИИ AI - Photo - screenshot OCR] admin | ai [2026/10/26 21:14] (current) – [искусственный интеллект ИИ AI] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== искусственный интеллект ИИ AI ====== | ====== искусственный интеллект ИИ AI ====== | ||
| + | -- supabase.com - вектроная AI | ||
| + | -- fabric-ai https:// | ||
| + | -- generate a detailed prompt \\ | ||
| + | -- Создай фотореалистичное изображение ёжика на страусе в поле , ёжик носит на спине наколотую на иголки игрушку-утку \\ | ||
| + | |||
| + | важное посмотреть : AutoGen pipeline , RAG \\ | ||
| + | |||
| + | |||
| + | https:// | ||
| + | ===== Мои проекты ===== | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | |||
| + | ===== ИИ ссылки ===== | ||
| + | https:// | ||
| + | https:// | ||
| + | https:// | ||
| + | теория https:// | ||
| курс https:// | курс https:// | ||
| + | рекомендации https:// | ||
| - https:// | - https:// | ||
| - https:// | - https:// | ||
| Line 11: | Line 30: | ||
| ====== искусственный интеллект ИИ AI - Photo - screenshot OCR ====== | ====== искусственный интеллект ИИ AI - Photo - screenshot OCR ====== | ||
| + | - table from screenshots to markdown https:// | ||
| - prepare graphics < | - prepare graphics < | ||
| - ocr - https:// | - ocr - https:// | ||
| Line 26: | Line 46: | ||
| * '' | * '' | ||
| + | |||
| + | * опиши по пунктам кратко содержание документа. | ||
| + | * опиши кратко по пунктам в виде таблицы , что нужно сделать , в какие сроки | ||
| + | * < | ||
| + | Ты - эксперт по питанию, | ||
| + | людям терять жир и набирать мышечную | ||
| + | массу. Задай мне вопросы и рассчитай | ||
| + | мою дневную норму калорий, | ||
| + | вычти из нее 200, чтобы получить дефицит | ||
| + | калорий. Умножь мой вес на 1.5, чтобы | ||
| + | рассчитать целевое количество белка. Вот | ||
| + | пять продуктов, | ||
| + | продуктов я хочу избегать. Обычно я ем Х | ||
| + | раз в день и Х раз перекусываю. Составь | ||
| + | мне план питания в формате таблицы, | ||
| + | который соответствует моим ежедневным | ||
| + | целям по белку и калориям. | ||
| + | Убедись, | ||
| + | моих блюд и перекусов. Предоставь список | ||
| + | ингредиентов и способ приготовления | ||
| + | каждого блюда | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | Английский оригинал (English original): | ||
| + | «I'm studying for my midterm and struggling with the concepts in Chapter 9. Explain them using simple analogies and give me some practice problems that are different from the ones in my notes.» | ||
| + | |||
| + | «Я готовлюсь к промежуточному экзамену и испытываю трудности с концепциями из Главы 9. Объясни их, используя простые аналогии, | ||
| + | </ | ||
| + | |||
| + | ==== Prompt документы ==== | ||
| + | < | ||
| + | Ты специалист по работе с документами в органах власти. | ||
| + | Проанализируй документ во вложении и опиши по пунктам: | ||
| + | |||
| + | Кто и кому пишет? | ||
| + | О чем кратко этот документ? | ||
| + | Составь по пунктам в формате таблицы что , в какие сроки необходимо сделать и кому ? | ||
| + | В отдельном разделе в конце максимально кратко сформулируй главное в 3–4 предложениях. | ||
| + | |||
| + | </ | ||
| ===== Ai services ===== | ===== Ai services ===== | ||
| * https:// | * https:// | ||
| Line 31: | Line 92: | ||
| * запись в текст https:// | * запись в текст https:// | ||
| * задний фон https:// | * задний фон https:// | ||
| + | * whisper ai - расшифровка интервью | ||
| Line 63: | Line 125: | ||
| </ | </ | ||
| ++++ | ++++ | ||
| + | ==== AI - create bash script for execute nagios passive ==== | ||
| + | ++++ Prompt - create bash script for nagios| | ||
| + | <code BASH> | ||
| + | you are a proffesional bash programmer. | ||
| + | you need to write a bash script start_metrics.sh with logging to file start_metrtics.log and config in variable on top of file. | ||
| + | |||
| + | need to print logging to stdout | ||
| + | |||
| + | config url=" | ||
| + | config bash array metrics is contain elements for parse and execution | ||
| + | example metrics=( " | ||
| + | " | ||
| + | |||
| + | |||
| + | Script need to Process each element in the metrics array : | ||
| + | 0. for example split element | ||
| + | |||
| + | and execute " | ||
| + | |||
| + | ``` | ||
| + | for metric in " | ||
| + | # Split the metric into its components | ||
| + | IFS=' | ||
| + | |||
| + | # Extract the command and parameters | ||
| + | metric_name=${components[0]} | ||
| + | cmd=${components[1]} | ||
| + | params=${components[@]: | ||
| + | |||
| + | # Execute the command with parameters and redirect stderr to a file | ||
| + | output=$( " | ||
| + | exitcode=$? | ||
| + | | ||
| + | .... | ||
| + | |||
| + | done | ||
| + | ``` | ||
| + | and firstly save exitcode to variable $exitcode, stdout to variable $stdout. | ||
| + | | ||
| + | |||
| + | 2. save for every execution duration of execution, exitcode, | ||
| + | |||
| + | 3. format | ||
| + | 4. send | ||
| + | ``` | ||
| + | curl \ | ||
| + | --request " | ||
| + | --user ' | ||
| + | --header ' | ||
| + | --data-urlencode " | ||
| + | --url $url | ||
| + | ``` | ||
| + | in log need to save curl commond and stdout and stderr of curl execution | ||
| + | every main step need to be in log file. | ||
| + | first log entry is " | ||
| + | finish entry is string | ||
| + | </ | ||
| + | ++++ | ||
| + | |||
| + | ==== Ai prompt to fill table ==== | ||
| + | ++++ заполнить таблицу календаря| | ||
| + | < | ||
| + | нужно заполнить таблицу в которой 10 столбцов | ||
| + | каждый элемент в строке представляет из себя формат "1 - 24.05" , где 1 это первые день в расчетном периоде , а 24.05 - это дата 24.05.2024 , второй элемент в строке "2 - 25.05" | ||
| + | необходимо создать таблицу по правилам выше с 24.05.2024 по 31.07.2024 | ||
| + | </ | ||
| + | ++++ | ||
| + | |||
| + | |||
| + | |||
| + | ==== Ai prompt to optimise query for LLM ==== | ||
| + | * оптимизируй запрос к большой генеративной модели | ||
| + | <code BASH> | ||
| + | Оптимизируй запрос к большой генеративной языковой модели | ||
| + | ``` | ||
| + | ты профессионал в информационной безопасности ИТ, объясни термин указанный ниже простым языком, | ||
| + | |||
| + | термин "CIS compliance with Ubuntu 20.04 LTS and 22.04 LTS" | ||
| + | ``` | ||
| + | </ | ||
| + | ++ | ||
| + | * ++ пример ответа| | ||
| + | <code BASH> | ||
| + | |||
| + | --- | ||
| + | Query: | ||
| + | |||
| + | CIS Compliance with Ubuntu 20.04 LTS and 22.04 LTS: A Simplified Explanation | ||
| + | |||
| + | Objective: | ||
| + | |||
| + | To provide a clear and concise explanation of the term "CIS compliance with Ubuntu 20.04 LTS and 22.04 LTS" using layman' | ||
| + | |||
| + | Target Audience: | ||
| + | |||
| + | Individuals with limited or no technical background in information security. | ||
| + | |||
| + | Key Points: | ||
| + | |||
| + | CIS Compliance: | ||
| + | |||
| + | Define CIS (Center for Internet Security) and its role in establishing cybersecurity standards. | ||
| + | Explain the significance of CIS compliance in the IT industry. | ||
| + | Ubuntu 20.04 LTS and 22.04 LTS: | ||
| + | |||
| + | Briefly introduce Ubuntu as a popular operating system for servers and desktops. | ||
| + | Highlight the LTS (Long Term Support) designation and its implications for stability and security updates. | ||
| + | CIS Compliance with Ubuntu: | ||
| + | |||
| + | Explain the concept of CIS Benchmarks, which are detailed security guidelines for various systems. | ||
| + | Describe how CIS Benchmarks are applied to Ubuntu 20.04 LTS and 22.04 LTS to achieve compliance. | ||
| + | Examples and Tables: | ||
| + | |||
| + | Table 1: CIS Benchmark Categories: | ||
| + | |||
| + | List the main categories covered by CIS Benchmarks, such as system configuration, | ||
| + | Example 1: CIS Compliance Requirement - Password Strength: | ||
| + | |||
| + | Explain the CIS requirement for strong passwords in Ubuntu, including minimum length, complexity, and expiration policies. | ||
| + | Provide a table comparing compliant and non-compliant password examples. | ||
| + | Example 2: CIS Compliance Requirement - System Updates: | ||
| + | |||
| + | Explain the CIS requirement for timely installation of system updates in Ubuntu to address security vulnerabilities. | ||
| + | Outline the steps involved in configuring automatic updates and manually checking for updates. | ||
| + | Conclusion: | ||
| + | |||
| + | Summarize the importance of CIS compliance for enhanced cybersecurity posture. | ||
| + | Emphasize the benefits of using Ubuntu 20.04 LTS and 22.04 LTS for achieving CIS compliance. | ||
| + | Additional Considerations: | ||
| + | |||
| + | Use simple language and avoid technical jargon to ensure comprehension by a non-technical audience. | ||
| + | Employ visual aids like tables and bullet points to enhance understanding and readability. | ||
| + | Maintain a conversational tone and engage the reader with examples and relatable scenarios. | ||
| + | </ | ||
| + | ++ | ||