Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View chrisyue's full-sized avatar
:octocat:
=。=

chris yue chrisyue

:octocat:
=。=
View GitHub Profile
@chrisyue
chrisyue / file_get_content_post.php
Created January 15, 2014 10:38
使用file_get_content发送POST请求
function tweet($message, $username, $password)
{
$context = stream_context_create(array(
'http' => array(
'method' => 'POST',
'header' => sprintf("Authorization: Basic %s\r\n", base64_encode($username.':'.$password)).
"Content-type: application/x-www-form-urlencoded\r\n",
'content' => http_build_query(array('status' => $message)),
'timeout' => 5,
),
@chrisyue
chrisyue / vim-verbose-set.md
Created January 14, 2014 15:41
vim察看某个选项被设置的详情

:verbose set isk?

@chrisyue
chrisyue / vim-imap.md
Created January 10, 2014 14:12
vim 察看imap

:verbose imap

@chrisyue
chrisyue / vim-verbose-check-option.md
Created December 29, 2013 18:38
vim查看选项详细设置过程

:verbose se ?

@chrisyue
chrisyue / 庐山烟雨.md
Created December 29, 2013 14:28
苏轼(苏东坡) - 庐山烟雨

庐山烟雨浙江潮

未到千般恨不消

到得原来无别事

庐山烟雨浙江潮

@chrisyue
chrisyue / nginx-symfony-dev-502.conf
Last active January 1, 2016 16:29
symfony在开发环境nginx报错502可能是因为header太大造成
http {
fastcgi_buffer_size 32k;
fastcgi_buffers 8 16k;
}
@chrisyue
chrisyue / 淡墨秋山.md
Last active January 1, 2016 16:29
米芾(米南宫) - 淡墨秋山

淡墨秋山尽远天

暮霞还照紫添烟

故人好在重携手

不到平山谩五年

@chrisyue
chrisyue / sed.md
Last active January 1, 2016 04:29
sed 多文件替换内容

sed -i s/old/new/g `grep old -lr dir`

@chrisyue
chrisyue / find.md
Created December 23, 2013 05:18
find命令查找文件

find [dir] -name [pattern]

@chrisyue
chrisyue / diff.md
Created December 12, 2013 13:24
diff工具

vimdiff

vi -d file1 file2

meld(gui)

使用diff工具查看git本地与前版本不同之处

git difftool