-R
--languages=php
--php-kinds=cif
--regex-php=/^[ \t]*trait[ \t]+([a-z0_9_]+)/\1/t,traits/i
--exclude=app/*
--exclude=bin/*
--exclude=web/*
--exclude=tests/*
--exclude=var/*
/\p{Han}+/u
非汉字
/\P{Han}+/u
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 { | |
server_name ~^(?<project>.*)\.localhost$; | |
root /var/www/repos/$project/web; | |
index app_dev.php; | |
location ~ \.php($|/) { | |
include fastcgi_params; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
} |
composer
http_proxy=http://127.0.0.1:8087 composer update
apt-get
http_proxy=http://127.0.0.1:8087 apt-get update
command
sudo apt-add-repository [--remove] ppa:xx/xx
- ppa:ondrej/php5
- ppa:chris-lea/redis-server
- ppa:git-core/ppa
- vim ppa:fcwu-tw/ppa
- ppa:chris-lea/node.js
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
public function getFilterParameters() | |
{ | |
$default = [ | |
'isAudited' => ['value' => 2], | |
]; | |
$this->datagridValues = array_merge($default, $this->datagridValues); | |
return parent::getFilterParameters(); | |
} |
vimdiff
vi -d file1 file2
meld(gui)
使用diff工具查看git本地与前版本不同之处
git difftool
find [dir] -name [pattern]
sed -i s/old/new/g `grep old -lr dir`
淡墨秋山尽远天
暮霞还照紫添烟
故人好在重携手
不到平山谩五年
OlderNewer