- #rus #5min 5-минутное введение
- #rus #10min 10-минутное введение от Droider
- #rus #60min 33 запроса ChatGPT для начинающих
- #eng #34min ChatGPT Tutorial - A Crash Course on Chat GPT for Beginners
- #eng #47min «ChatGPT for Beginners: The Ultimate Use Cases for Everyone» от Udemy
- #eng #2h ChatGPT for Beginners
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function: aidir | |
# Description: | |
# This function analyzes the project code in a given directory by recursively | |
# finding all files and processing them. It skips directories specified in the | |
# environment variable AIDIR_SKIP. If AIDIR_SKIP is not set, no directories are skipped. | |
# The function concatenates the content of text/source files into a single string | |
# and saves it to ~/.aidir. Then, it starts a REPL session with aichat, using the | |
# concatenated content as input. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
local command_text="$*" | |
command_output=$(eval "$command_text" 2>&1) | |
command_status=$? | |
echo "$command_output" | |
# Check if the command failed | |
if [ $command_status -ne 0 ]; then | |
print "===================================" | |
print "Explaining the error with aichat..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Check if at least two arguments are provided (Alpine version and one package) | |
if [ "$#" -lt 2 ]; then | |
echo "Usage: $0 <alpine_version> <package1> [package2 ...]" | |
exit 1 | |
fi | |
alpine_version=$1 | |
shift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"strings" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server "nomad-client" { | |
config { | |
packages "yum" { | |
additional_sources = [ | |
"epel-releases", | |
"https://download.docker.com/linux/centos/docker-ce.repo" | |
] | |
} | |
services "systemctl" {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/cloudflare/cloudflare-go" | |
"log" | |
"os" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/prometheus/client_golang/prometheus" | |
"log" | |
"net/http" | |
"github.com/prometheus/client_golang/prometheus/promhttp" | |
) |
Есть онлайн заказ. Калькулятор не работает, но есть файл с ценами, можно расчитать
Нет онлайн заказа. Есть цены.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for telegraf agent | |
[agent] | |
## Default data collection interval for all inputs | |
interval = "10s" | |
## Rounds collection interval to 'interval' | |
## ie, if interval="10s" then always collect on :00, :10, :20, etc. | |
round_interval = true | |
## Telegraf will send metrics to outputs in batches of at most | |
## metric_batch_size metrics. |