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
| 1. Главный постулат: ИИ ускоряет написание кода и разработку в два, три раза? Ответ ДА! | |
| 2. ИИ это волшебная палочка? Ответ НЕТ! | |
| 3. Эффективность, грамотность написанного ИИ кода зависит от компетенции разработчика? Ответ ДА! | |
| 4. ИИ достаточно часто идет не туда, и пишет не то, что нужно? ДА! | |
| 5. Достаточно часто приходится писать команды стоп, и отмена? Да! | |
| 6. ИИ поможет джуну? Нет! Сначала нужно овладеть нужными компетенциями для разработки любого приложения, независимо от ЯП. | |
| 7. С ИИ можно обсуждать архитектурные решения? Да! | |
| 8. С ИИ можно советоваться по каким либо вопросам, которые относятся к разработке, но их нет у тебя в проекте? Да! | |
| 9. При всех своих недостатках ИИ реально ускоряет написание кода? ДА! Смотри пункт 1 | |
| 10. Что самое главное меняет ИИ при разработке, при его использовании? Разработчик полностью сосредоточен на логике приложения, |
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
| [Unit] | |
| Description=workerman | |
| After=syslog.target | |
| After=network.target | |
| After=redis.service | |
| Requires=redis.service | |
| [Service] | |
| Type=forking | |
| WorkingDirectory=/app/oms/workerman/ |
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
| <?php | |
| namespace app\components\helpers; | |
| class FirstUpperCase | |
| { | |
| public static function get($string, $encoding = 'UTF-8') | |
| { |
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
| <?php | |
| /** | |
| * @author https://github.com/adamasantares | |
| */ | |
| namespace app\components\helpers; | |
| class SumToCurrencyStrRu | |
| { |
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 | |
| D=`date +%j` | |
| USER=$1 | |
| if [ $((10#$D % 2)) == 1 ];then | |
| case $USER in | |
| vet) | |
| FILE=user_list_vet |
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 | |
| DATE=`/bin/date '+%d.%m.%Y'` | |
| DB_PASSWD=passwd | |
| PREV_USER=prev_user | |
| cp rsync_email_orig rsync_email | |
| date >> rsync_email | |
| echo "==============================================" >> rsync_email |
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 | |
| DATE=`/bin/date '+%d.%m.%Y'` | |
| DB_PASSWD=passwd | |
| USERS=$1 | |
| cnf=$2 | |
| mkdir ~/backup | |
| cp rsync_email_orig rsync_email |
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 | |
| if (($(id -u) > 0)); then | |
| echo "Вы не рут!!!" | |
| exit 1 | |
| fi | |
| echo -e "Введите имя пользователя" | |
| read USER_NAME | |
| ROOT_DIR="/var/www/$USER_NAME/public_html" |
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 | |
| DIR_SITE="public_html/logs" | |
| FILE=create_user | |
| while read USER; do | |
| DIR=/var/www/$USER | |
| useradd -s /bin/bash -md $DIR -c "$USER" $USER | |
| cd $DIR | |
| mkdir -p $DIR_SITE | |
| cp -r /root/.ssh/ ./ |