sudo systemctl daemon-reload
sudo systemctl enable rc.local
编辑完成 /etc/systemd/system/php7.1-fpm.service 运行
sudo systemctl daemon-reload
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
| if [ -z $RCLOAD ]; then | |
| if [ -f ~/.bashrc ]; then | |
| . ~/.bashrc | |
| fi | |
| fi | |
| function git-branch-name { | |
| git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3 | |
| } | |
| function git-branch-prompt { |
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 | |
| name="Flask uWSGI" | |
| UWSGI_HOME=$(cd "$(dirname "$0")"; cd ..; pwd) | |
| UWSGI_BIN=$UWSGI_HOME/venv/bin/uwsgi | |
| UWSGI_CONFIG=$UWSGI_HOME/config/uwsgi.yaml | |
| UWSGI_LOG_FILE=$UWSGI_HOME/logs/uwsgi/$(date +'%Y%m%d').log | |
| UWSGI_PID_FILE=/var/run/dapi-uwsgi.pid |
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 php | |
| <?php | |
| $src_dir = __DIR__ . '/php-src'; | |
| $protos_dir = __DIR__ . '/protos'; | |
| foreach (new DirectoryIterator($protos_dir) as $file) { | |
| if ($file->isFile() && $file->getExtension() === 'proto') { | |
| generate_service_code($file->getPathname()); | |
| } |
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
| [exclude] | |
| ignores=*.log,*.pyc | |
| [hosts] | |
| sms=myhost.com::prepare_home/sms |
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 | |
| if [ -f /usr/local/bin/php7 ]; then | |
| php=/usr/local/bin/php7 | |
| else | |
| php=`which php` | |
| fi | |
| check=$($php -r "echo version_compare(PHP_VERSION, '5.6.0') >= 0 ? 'yes' : 'no';") | |
| if [ $check != "yes" ]; then |
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 | |
| PATTERN=$1 | |
| if [ -z $PATTERN ] ; then | |
| echo "Usage: fkill <GREP PATTERN>" | |
| exit -1 | |
| fi | |
| CMD=$(/bin/ps -ef | grep -v grep | grep -v fkill | grep "$PATTERN") |
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 | |
| $fixers = [ | |
| '@PSR1' => true, | |
| '@PSR2' => true, | |
| '@Symfony' => true, | |
| 'align_multiline_comment' => true, | |
| 'array_indentation' => true, | |
| 'array_syntax' => [ | |
| 'syntax' => 'short', |
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 | |
| # Author: Remigijus Jarmalavičius <remigijus@jarmalavicius.lt> | |
| # Author: Vytautas Povilaitis <php-checker@vytux.lt> | |
| # | |
| # XDebug check added by William Clemens <http://github.com/wesclemens> | |
| # Handle spaces in filenames Dave Barnwell <https://github.com/freshsauce> | |
| ROOT_DIR="$(pwd)/" | |
| LIST=$(git diff-index --cached --name-only --diff-filter=ACMR HEAD) | |
| ERRORS_BUFFER="" |