上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页
摘要: 官方说明:https://help.github.com/articles/generating-ssh-keys/1,为Github账户设置SSH key文章地址:http://zuyunfei.com/2013/04/10/setup-github-ssh-key/什么是SSH key一直使用S... 阅读全文
posted @ 2014-12-11 22:34 KoMiles 阅读(27628) 评论(0) 推荐(0) 编辑
摘要: 1,ulimit -a查看目录的各位限制修改文件限制:/etc/security/limits.conf2, 阅读全文
posted @ 2014-12-10 21:55 KoMiles 阅读(365) 评论(0) 推荐(0) 编辑
摘要: set nocompatiblesource $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswinset nobackupset diffexpr=MyDiff()function MyDiff()let opt ... 阅读全文
posted @ 2014-12-05 17:26 KoMiles 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1,切出指定版本svn copy svn://192.168.1.52/help/branches/help_forShop_140307 -r 170 svn://192.168.1.52/help/branches/help_forPm_141010 -m '*切出分支'2,更改版本名称svn ... 阅读全文
posted @ 2014-12-05 14:36 KoMiles 阅读(7445) 评论(0) 推荐(0) 编辑
摘要: var name = window.location.search.substr(4,30);//name = decodeURI(name);//使用示例document.getElementById('username').innerHTML = decodeURI(name); 阅读全文
posted @ 2014-12-02 23:28 KoMiles 阅读(494) 评论(0) 推荐(0) 编辑
摘要: //判断传入的字符是否是utf-8function is_utf8($word){if (preg_match("/^([".chr(228)."-".chr(233)."]{1}[".chr(128)."-".chr(191)."]{1}[".chr(128)."-".chr(191)."]{1}... 阅读全文
posted @ 2014-12-02 15:17 KoMiles 阅读(1134) 评论(0) 推荐(0) 编辑
摘要: 对于经常使用mysql的兄弟们,对explain一定不会陌生。当你在一条SELECT语句前放上关键词EXPLAIN,MySQL解释它将如何处理SELECT,提供有关表如何联合和以什么次序的信息。借助于EXPLAIN,你可以知道1)你什么时候必须为表加入索引以得到一个使用索引找到记录的更快的SELEC... 阅读全文
posted @ 2014-11-28 10:33 KoMiles 阅读(2607) 评论(0) 推荐(0) 编辑
摘要: 在用PHP5.3以上的PHP版本时,只要是涉及时间的会报一个Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings. You are *required* to u... 阅读全文
posted @ 2014-11-27 10:48 KoMiles 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 在用winScp上传文件时,有些文件不想上传到服务器上。怎么办呢?比如我希望过滤.svn .git文件和目录怎么操作呢?第一步:在菜单上选中选项,点击选项。第二步,点击传输-》编辑第三步:编辑第四步:编辑自己想要过滤的文件和目录。到此,你就可以自定义设置自己想要的过滤的文件和目录了 阅读全文
posted @ 2014-11-26 21:39 KoMiles 阅读(5036) 评论(0) 推荐(0) 编辑
摘要: 目标机器:a ip为192.168.2.150(内网ip) a.xxx.x.xx(外网ip)跳板机器:b ip为192.168.2.151(内网ip) b.xxx.xx.xx(外网ip)目标机器直接连是不让链接的,现在的任务是如何连接到目标机器上。1,secureCRT链接这种方式是用ssh,先链接... 阅读全文
posted @ 2014-11-26 21:21 KoMiles 阅读(16705) 评论(0) 推荐(0) 编辑
摘要: log_format main '$remote_addr - $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http... 阅读全文
posted @ 2014-11-26 18:13 KoMiles 阅读(293) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/xiaolei1982/article/details/71038501,查看php-cgi的进程数netstat -anpo | grep "php-cgi" | wc -l2,运行php-cgiphp-cgi -b 127.0.0.1:9000 阅读全文
posted @ 2014-11-26 17:13 KoMiles 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 1,在nginx中配置如何防止直接用ip访问服务器web server及server_name特性讲解http://my.oschina.net/jing31/blog/127112,Nginx 301重定向的配置http://www.nowamagic.net/academy/detail/122... 阅读全文
posted @ 2014-11-25 14:49 KoMiles 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.phpstudy.net/php/165.htmlPHP array_fill 用给定的值填充数组array_fill(PHP 4 >= 4.2.0, PHP 5)array_fill—用给定的值填充数组说明arrayarray_fill(int$start_index,... 阅读全文
posted @ 2014-11-23 15:13 KoMiles 阅读(5084) 评论(0) 推荐(0) 编辑
摘要: 2014-11-22 更新文件abc1,需要编辑abc的第三行vim +3 abc2,需要查询abc文件中的test字符vim +/test abc3,创建三个文件 aa bb ccvim aa bb cc:n 切换到下一个文件:N 切换到上一个文件 也可以用 :prev4,列出所有打开的文件:ls... 阅读全文
posted @ 2014-11-22 22:32 KoMiles 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.tsingpost.com/articles/201401/347.html1.尽量静态化:如果一个方法能被静态,那就声明它为静态的,速度可提高1/4,甚至我测试的时候,这个提高了近三倍。当然了,这个测试方法需要在十万级以上次执行,效果才明显。其实静态方法和非静态方法的效... 阅读全文
posted @ 2014-11-21 16:35 KoMiles 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.jb51.net/article/26604.htm今天项目中用到,去掉字符串中的最后一个字符原字符串1,2,3,4,5,6,去掉最后一个字符",",最终结果为1,2,3,4,5,6代码如下:复制代码代码如下:$str = "1,2,3,4,5,6,";$newstr =... 阅读全文
posted @ 2014-11-17 15:01 KoMiles 阅读(8951) 评论(0) 推荐(1) 编辑
摘要: 选择“开始→运行”:1、输入“at 22:00 Shutdown -s”,这样,到了22点电脑就会出现“系统关机”对话框,默认有30秒钟的倒计时并提示你保存工作。2、输入 “Shutdown.exe -s -t 3600”,这里表示60分钟后自动关机,“3600”代表60分钟。设置完成后会弹出一个倒... 阅读全文
posted @ 2014-11-16 22:52 KoMiles 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 1,第一步登陆虚拟主机,安装openssh-server(这一步非常重要,如果不安装,你在宿主机上怎么链接都是连不上的,我当时就犯了这个错误)apt-get install openssh-server2,接下来这是虚拟机的端口转发,这个是最简单的。这样就可以用secureCRT链接到自己的虚拟机里... 阅读全文
posted @ 2014-11-16 21:17 KoMiles 阅读(16388) 评论(0) 推荐(3) 编辑
摘要: 文章转自:http://blog.csdn.net/shell_picker/article/details/6033023摘自 Vim 手册:选项:1. tabstop:表示一个 tab 显示出来是多少个空格,默认 82. softtabstop:在编辑的时候(比如按退格或 tab 键)一个 ta... 阅读全文
posted @ 2014-11-14 15:44 KoMiles 阅读(5008) 评论(0) 推荐(1) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页