искусственный интеллект ИИ AI
– generate a detailed prompt
– Создай фотореалистичное изображение ёжика на страусе в поле , ёжик носит на спине наколотую на иголки игрушку-утку
важное посмотреть : AutoGen pipeline , RAG
Мои проекты
ИИ ссылки
искусственный интеллект ИИ AI - Photo - screenshot OCR
AI prompt
let`s think step by step
explain … in simple terms. explain to me like I'm 10 years old. and also give me many examples in table format to make it more simple and easy to understand.
-
-
Brainstorm new recipes with only five ingredients: chicken, broccoli, cream, pasta and basil.
Steps to improve a company's employee retention rates.
→ What steps can a company take to enhance its employee retention rates? Provide a list of practical strategies.
опиши по пунктам кратко содержание документа.
опиши кратко по пунктам в виде таблицы , что нужно сделать , в какие сроки и добавь критерий успешности
ИТАК, ПРОМПТ
Ты - эксперт по питанию, который помогает
людям терять жир и набирать мышечную
массу. Задай мне вопросы и рассчитай
мою дневную норму калорий, а затем
вычти из нее 200, чтобы получить дефицит
калорий. Умножь мой вес на 1.5, чтобы
рассчитать целевое количество белка. Вот
пять продуктов, которые я люблю. Вот этих
продуктов я хочу избегать. Обычно я ем Х
раз в день и Х раз перекусываю. Составь
мне план питания в формате таблицы,
который соответствует моим ежедневным
целям по белку и калориям.
Убедись, что у меня есть два варианта всех
моих блюд и перекусов. Предоставь список
ингредиентов и способ приготовления
каждого блюда
Prompt документы
Ты специалист по работе с документами в органах власти.
Проанализируй документ во вложении и опиши по пунктам:
Кто и кому пишет?
О чем кратко этот документ?
Составь по пунктам в формате таблицы что , в какие сроки необходимо сделать и кому ?
В отдельном разделе в конце максимально кратко сформулируй главное в 3–4 предложениях.
Ai services
ChatGPT
Promt for Claude backup VM virsh
Prompt <https://chat.claudeai.ai/chat/fac58d0f-9bf5-4f28-92ae-b2494787ac91>
you are a proffesional phyton3 programmer. you need to write a python3 code with classes and logging to file. Logging to stdout only if we have a argument "-v".
We need make a backup of selected in defined list vm of kvm and to do backup of every vm with name of "name_of_vm" by shell process with command f"docker run --rm \
-v /run:/run -v /var/tmp:/var/tmp -v /mnt/synology/skala_bkp_nfs/rvirt04/:/mnt/backups -v /var/lib/libvirt/images:/var/lib/libvirt/images \
docker-virtnbdbackup \
virtnbdbackup -d {name_of_vm} -l uto -o /mnt/backups/{name_of_vm}".
need to convert this string of shell command to python3 subprocess module list format way and replace all occurring pattern {name_of_vm} to "name_of_vm" currently backing up name of vm.
save log from shell process and analyze exit code with logging of every cmd.
also need cleanup old copies older than 60 days of every name_of_vm of path "/mnt/synology/skala_bkp_nfs/rvirt04/{name_of_vm}"
need to add to logging start entry and stop entry . in stop entry need to add elapsed seconds, also need similar start stop to main script.
also need to add min try catch and save error,line
need full code without explanation
Prompt - create a static golang with api and postgresql
can you write the most efficient GOlang source code implements server application with handlers for running SQL queries in postgressql and returning results in JSON format. with proper error handling also during sql and logging. source code need to compile in single static file code
AI - create bash script for execute nagios passive
Prompt - create bash script for nagios
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 if we have started a script whith an argument "-v" !
config url="http://10.59.20.16:8000".
config bash array metrics is contain elements for parse and execution ,
example metrics=( "RAID_mismatch_virt04|./check_linux_raid_mismatch.sh|-p1 1|400"
"RAID_rvirt04|./check_raid.pl")
Script need to Process each element in the metrics array :
0. for example split element of array "RAID_mismatch_virt04|./check_linux_raid_mismatch.sh|-p1 1|400" to
and execute "./check_linux_raid_mismatch.sh -p1 1 400" something like
```
for metric in "${metrics[@]}"; do
# Split the metric into its components
IFS='|' read -r -a components <<< "$metric"
# Extract the command and parameters
metric_name=${components[0]}
cmd=${components[1]}
params=${components[@]:2}
# Execute the command with parameters and redirect stderr to a file
output=$( "$cmd" $params 2> >(tee /tmp/stderr.tmp >&2) )
exitcode=$?
....
done
```
and firstly save exitcode to variable $exitcode, stdout to variable $stdout.
redirect stderr to file and then read file to variable $srtderr and delete file with stderr
2. save for every execution duration of execution, exitcode, stdout and stderr to variables $dur, $exitcode$,
3. format $mess="fed-hw;$metric_name;$errorcode;$stdout"
4. send
```
curl \
--request "POST" \
--user 'fed_monitor:l3tm31n' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode "perfdata=$mess" \
--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 "---start" and concat with date.
finish entry is string "=== Stop" and concat with duration of total execution of script and number of success and failed metrics
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
оптимизируй запрос к большой генеративной модели
запрос на Gemmini
Оптимизируй запрос к большой генеративной языковой модели
```
ты профессионал в информационной безопасности ИТ, объясни термин указанный ниже простым языком, для облегчения понимания приведи примеры в виде списков и таблиц.
термин "CIS compliance with Ubuntu 20.04 LTS and 22.04 LTS"
```
пример ответа
---
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's terms, accompanied by examples in the form of lists and tables.
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, data protection, and access control.
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.