This is an old revision of the document!
искусственный интеллект ИИ AI
курс https://course.fast.ai/ - https://github.com/yury-sannikov/course-v3?tab=readme-ov-file
- https://www.youtube.com/watch?v=jib1wjgIaa4 - models llama2
искусственный интеллект ИИ AI - Photo - screenshot OCR
- prepare graphics <https://pixlr.com/>
- online editor https://www.img2go.com/
- screenshot снимок экрана <http://www.structurise.com/screenshot-ocr/> <https://www.imagetotext.io/>
- remove image background - удалить задний фон https://pixian.ai/ https://removal.ai/upload https://www.i2img.com/image-background-remover
- picture qr-codes read https://products.aspose.app/barcode/recognize/qr#/recognized
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.
- a way to produce productivity → https://www.youtube.com/watch?v=l-kE11fhfaQ
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.
Ai services
- https://huggingface.co/spaces/sanchit-gandhi/whisper-jax - голос на записи в текст
- запись в текст https://plaud.ai/
ChatGPT
Как работать с GPT-4 https://habr.com/ru/articles/758520/
Prompt Cheat Sheet
Promt for Claude backup VM virsh
AI - create bash script for execute nagios passive |
++++ Prompt - create bash script for nagios|
you are a professional 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 put logging to stdout only 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