mintty界面编码改为zh-cn GBK
右击git bash标题->Options->Text
Locale选择zh_CN,Char set选择GBK
| /* | |
| * IniSettings.cpp | |
| * | |
| * Created on: 2017年12月25日下午2:55:07 | |
| * Author: lixingcong | |
| */ | |
| //#include "StdAfx.h" | |
| #include "IniSettings.h" | |
| #include <iostream> |
| <?php | |
| // https://stackoverflow.com/questions/1545432/what-is-the-easiest-way-to-use-the-head-command-of-http-in-php | |
| $dst_url='http://qq.com/'; | |
| // create a new cURL resource | |
| $ch = curl_init(); | |
| // set URL and other appropriate options |
| ✔ [/home/ubuntu/nginx_html/] | |
| $ tree | |
| . | |
| ├── homepage.php | |
| ├── home.php | |
| ├── index.html | |
| └── xxoo | |
| ├── back.php | |
| └── backup.php |
| // use C source code, not macro | |
| void debug_printf(char *fmt,...){ | |
| #ifdef _DEBUG | |
| va_list ap; | |
| va_start(ap,fmt); // #include <stdarg.h> | |
| vprintf(fmt,ap); | |
| va_end(ap); | |
| #endif | |
| } |
| /* | |
| * FileReadWrite.cpp | |
| * | |
| * Created on: 2017年7月28日上午11:10:36 | |
| * Author: lixingcong | |
| */ | |
| #include "FileReadWrite.h" | |
| #include <iostream> |
| # Usage: | |
| # AStyle.exe --options=style.conf demo.cpp | |
| # Language: C/C++ | |
| # base style | |
| --style=k&r | |
| #--style=allman | |
| # max length of a line |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| usage: | |
| find /var/www/downloads > /tmp/1.txt | |
| python this_script.py /tmp/1.txt | |
| """ | |
| import urllib | |
| import sys |