- 手机:18072755577
- Email:cismous@gmail.com
- 羽风/男/1990/本科
- 工作年限:9 年(2011.3-至今)
- Github: https://github.com/cismous
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 | |
#查找包含class的这一行,然后在上面插入三行,1.空行; 2.namespace Taobao\Top\Request; 3.空行. | |
sed -i '/class/i\\nnamespace Taobao\\Top\\Request;\n' api_path/*.php |
- 项目名称:淘宝装修辅助工具
- 项目链接:http://tool.yufeg.com/tool/designer
- 系统架构:使用阿里云云服务器ECS,服务器使用Ubuntu系统;网站采用LNMP平台,使用开源 yii2(http://www.yiiframework.com/) Web 2.0 applications 开发。
- 所有JS文件,通过RequireJS加载,使用r.js压缩整个项目;
- 使用CSS预处理器Sass编写样式,通过GruntJS压缩所有css文件;
- 关于图片,尽量使用Bootstap这样的框架,有很多可用字体图标。个人嫌弃Bootstrap太大,建议手动编译所需的部分;再就是css sprite;
- 静态资源通过CDN加载;
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
<!Doctype HTML> | |
<html> | |
<head> | |
<style> | |
display:-webkit-flex; | |
display:flex; | |
</style> | |
</head> | |
<body> | |
test |
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/sh | |
# Provides: cismous | |
# Description: starts node app when system startup | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/cismous/.local/bin | |
DAEMON=/usr/bin/node | |
APPPATH=/home/cismous/www/chair | |
LOGPATH=/home/cismous/www/chair/logs |
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
alias hosts = 'sudo vi /etc/hosts' | |
alias nh = 'nautilus .' | |
alias nginx.conf = 'cd /etc/nginx/conf.d' |
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
# edit hosts | |
alias hosts='sudo vi /etc/hosts' | |
# edit bash config | |
alias bashrc='vi ~/.bashrc' | |
# open current directory | |
alias nh='nautilus .' |
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
server { | |
listen 80; | |
server_name domain.com; | |
location / { | |
proxy_pass http://localhost:4567; | |
proxy_redirect http://localhost:4567 http://$host/; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
OlderNewer