This file contains 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 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 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 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 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 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 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 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/ ./ |