摘要: php安装之后安装redis扩展 php禁用函数删除phpenv,shell_exec 阿里云 raw 创建用户,添加oss权限 ,角色加sts权限 服务器目录 runtime/account不能删除 阅读全文
posted @ 2024-01-28 16:23 末世 阅读(63) 评论(0) 推荐(0) 编辑
摘要: func Add(s []int, index int, value int) []int { len := len(s) if 0 > index || len <= index { panic("error") } s = append(s, s[len - 1]) temp := len - 阅读全文
posted @ 2021-08-07 12:26 末世 阅读(138) 评论(0) 推荐(0) 编辑
摘要: brew源 注意:使用国内源的时候一般不连接shadowsock等VPN,不然访问可能出错 替换现有上游 git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/b 阅读全文
posted @ 2019-08-18 13:13 末世 阅读(3322) 评论(0) 推荐(2) 编辑
摘要: Curl 纯文本格式输出: curl JSON格式输出: curl XML格式输出: curl 得到所有IP细节 (挖掘机) 使用 DYDNS (当你使用 DYDNS 服务时有用) 使用 Wget 代替 Curl 使用 host 和 dig 命令 如果有的话,你也可以直接使用 host 和 dig 阅读全文
posted @ 2019-02-19 19:04 末世 阅读(285) 评论(0) 推荐(0) 编辑
摘要: <Directory /> Options FollowSymLinks AllowOverride All </Directory> 阅读全文
posted @ 2018-12-24 14:21 末世 阅读(184) 评论(0) 推荐(0) 编辑
摘要: ./configure --prefix=/usr/local/php7 \ --with-curl \ --with-freetype-dir \ --with-gd \ --with-gettext \ --with-iconv-dir \ --with-kerberos \ --with-li 阅读全文
posted @ 2017-04-17 22:44 末世 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1、安装svn yum install subversion 2、创建svn版本库目录 mkdir /home/svn 3、创建版本库 svnadmin create /home/svn/test 4、修改配置 cd /home/svn/test/conf svnserve.conf SVN服务配置 阅读全文
posted @ 2017-01-20 09:52 末世 阅读(138) 评论(0) 推荐(0) 编辑
摘要: start(); * ======================== * 当然,如果你喜欢,还可以对此类进行扩展, * 比如,如果需要用户登录才能采集的数据怎么办? * 只要我们使用 curl 来做伪登录,把 cookie 保存到文件, * 每次请求发送有效的 cookie 即可实现伪登录抓去数据! */ class MultiHttpRequest { public $u... 阅读全文
posted @ 2016-06-30 09:30 末世 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 一、查看event是否开启 开启event_scheduler 为了重启mysql也能生效,最好再my.ini(linux在my.cnf)里面设置 二、创建存储过程 三、创建event e_test 每隔30秒将执行存储过程test 关闭事件任务 开启事件任务 阅读全文
posted @ 2014-12-30 11:04 末世 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 看网上很多人说mysql集群不是很稳定,因此这2天做了下mysql的集群,打算配置没有什么问题了,过2天做下相关的性能测试,我的配置环境如下: 操作系统: Centos5.2 软件包: mysql-cluster-gpl-7.0.8a-linux-i686-glibc23.tar.gz 数据库管理节 阅读全文
posted @ 2014-10-13 14:21 末世 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 有时我们很多栏目公用一个模版,但栏目展示的图片又不同,并且要考虑到多级栏目下的 {dede:field.typeid function="GetTopid(@me)"/} 这个能获取到栏目的顶级ID,不同的栏目图片加上不同的ID就可以了。 阅读全文
posted @ 2014-06-03 22:45 末世 阅读(121) 评论(0) 推荐(0) 编辑
摘要: //阻止回车提交表单 $('form').keypress(function(e){ if(e.which === 13){ return false; } }) 阅读全文
posted @ 2013-10-31 11:57 末世 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 今天无意间看ECSHOP的源码,看到获取中文字符串的长度的代码,感觉这个思路很不错。 阅读全文
posted @ 2013-10-21 16:18 末世 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 在做数据提交的表单时,经常要对input输入内容的类型进行限制,譬如javascript限制input只允许输入数字,最好的方法当然是使用javascript,因为它不用与服务器交互,大大减轻了服务器的压力,下面贴出网络上搜索出来的这些代码,希望对你有用: 阅读全文
posted @ 2013-09-27 16:14 末世 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 最近在eclipse中开发android项目,用到了jquery mobile框架,则会涉及到新建html文件,发现eclipse不自带新建html文件的插件,必须得新建一个其他形式的文件,譬如xml格式的文件,然后重命名,后缀名改成html,觉得这样老麻烦的,所以在网上发现了Eclipse HTM 阅读全文
posted @ 2013-09-21 23:24 末世 阅读(214) 评论(0) 推荐(0) 编辑
摘要: function getFirstLetter($str){ $fchar = ord($str{0}); if($fchar >= ord("A") and $fchar = -20319 and $asc = -20283 and $asc = -19775 and $asc = -19218 and $asc = -18710 and $asc = -18526 and $... 阅读全文
posted @ 2013-08-27 15:19 末世 阅读(228) 评论(0) 推荐(0) 编辑
摘要: function defend_sql($string, $force = 1) { $preg = "select|insert|and|or|update|delete|\'|\/\*|\*|\.\.\/|\.\/|union|into|load_file|outfile"; if(!get_magic_quotes_gpc() || $force) { if... 阅读全文
posted @ 2013-08-27 14:47 末世 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 之前以为js对象即数组,今天用length取对象的长度老是undefined,用concat合并两个对象也不行,于是网上找了一下, 获取对象的长度 合并两个对象 阅读全文
posted @ 2013-08-23 10:19 末世 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 今天装完SVN之后,用来查看文件不同老是出现could not start external diff program,网上找了很多资料也没找到自己想要的,无意中中右键 Settings看到有个Diff Viewer 点进去发现默认选择 External,于是我改成TortoiseMerge就可以了 阅读全文
posted @ 2013-08-13 14:48 末世 阅读(1241) 评论(0) 推荐(0) 编辑
摘要: 可用于数据操作,防止超时。 阅读全文
posted @ 2013-06-25 10:30 末世 阅读(232) 评论(0) 推荐(0) 编辑