- 页面左右边距
24px
- list 上下边距
20px
#f0eff5
- list-item 高度
110
- 内容字体
28px
小字22px
标题30px
- 标题颜色
#333
正文颜色#666
辅助字体颜色#999
强调#f75b47
- 边框颜色
#e6e6e6
页面底色#f9f9f9
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
location / { | |
if (!-e $request_filename) { | |
rewrite ^/(.*)$ /index.php?$1 last; | |
} | |
} |
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
cd ~ | |
mkdir composer | |
php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" | |
ln -s /root/composer/composer.phar /usr/local/bin/composer | |
composer config -g repo.packagist composer https://packagist.phpcomposer.com | |
composer global require "fxp/composer-asset-plugin:~1.1.1" | |
echo completed |
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
```go | |
package main | |
import ( | |
"bufio" | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"io" | |
) |
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
``` | |
.PHONY: build clean lint help | |
all: build deploy | |
build: | |
GOOS=linux GOARCH=amd64 go build -v -o ./bin/phonebook-backend-d . | |
upx ./bin/phonebook-backend-d | |
deploy: |
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 | |
# input version | |
echo Please input NodeJs version to install: | |
read version | |
wget https://npm.taobao.org/mirrors/node/v${version}/node-v${version}-linux-x64.tar.gz | |
tar xzf node-v${version}-linux-x64.tar.gz | |
mv node-v${version}-linux-x64 /opt/node | |
echo 'export PATH=/opt/node/bin:$PATH' >> ~/.bash_profile |
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
# run a bash script | |
pm2 start --name git-sync --interpreter=none /usr/local/bin/git-sync | |
# run npm script | |
pm2 start --name quntui-promotion npm -- run start |
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
FROM alpine | |
LABEL maintainer="xialeistudio<xialeistudio@gmail.com>" | |
# 修改镜像源 | |
WORKDIR /root | |
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories | |
RUN apk update | |
# 安装PHP扩展 | |
RUN apk add php7-cli php7-dev \ | |
php7-xml \ | |
php7-openssl \ |
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 | |
use yii\base\Application; | |
use yii\BaseYii; | |
/** | |
* @author xialeistudio | |
* @date 2019-05-27 | |
*/ | |
class Yii extends BaseYii |
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
1. 生成私钥 | |
openssl genrsa -out client.key 4096 | |
2、生成证书签名请求(CSR) | |
openssl req -new -key client.key -out client.csr | |
3、使用上一步的证书签名请求签发证书 | |
openssl x509 -req -days 365 -in client.csr -signkey client.key -out client.crt | |
OlderNewer