编辑完成 /etc/systemd/system/php7.1-fpm.service 运行
sudo systemctl daemon-reload| #!/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()); | |
| } |
| #!/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 |
| 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 { |
编辑完成 /etc/systemd/system/php7.1-fpm.service 运行
sudo systemctl daemon-reloadsudo systemctl daemon-reload
sudo systemctl enable rc.local
| <?php | |
| /** | |
| * CLI 命令行函数 | |
| */ | |
| /** | |
| * 生成具有颜色的文本 | |
| * | |
| * @param string $text |
| <?php | |
| namespace Base\View\Helper; | |
| /** | |
| * 视图助手 - 输出响应信息 | |
| * | |
| * 示例: | |
| * | |
| * $helper = new \Base\View\Helper\Message; |
| [ | |
| { "keys": ["ctrl+shift+c"], "command": "convert_to_utf8" }, | |
| { "keys": ["ctrl+t"], "command": "side_bar_new_file2" }, | |
| { "keys": ["f2"], "command": "side_bar_rename" }, | |
| { "keys": ["ctrl+alt+b"], "command": "upper_case" }, | |
| { "keys": ["ctrl+alt+l"], "command": "lower_case" }, | |
| { "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} }, | |
| { "keys": ["ctrl+1"], "command": "fold_by_level", "args": {"level": 1} }, | |
| { "keys": ["ctrl+2"], "command": "fold_by_level", "args": {"level": 2} }, | |
| { "keys": ["ctrl+3"], "command": "fold_by_level", "args": {"level": 3} }, |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Blackboard</string> | |
| <key>author</key> | |
| <string>Domenico Carbotta</string> | |
| <key>settings</key> | |
| <array> |