This file contains hidden or 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
| [root@H200 millken]# wget http://www.openssl.org/contrib/ssl.ca-0.1.tar.gz | |
| --2010-08-12 01:44:59-- http://www.openssl.org/contrib/ssl.ca-0.1.tar.gz | |
| Resolving www.openssl.org... 195.30.6.166 | |
| Connecting to www.openssl.org|195.30.6.166|:80... connected. | |
| HTTP request sent, awaiting response... 200 OK | |
| Length: 13922 (14K) [application/x-tar] | |
| Saving to: `ssl.ca-0.1.tar.gz' | |
| 100%[=============================================>] 13,922 19.6K/s in 0.7s |
This file contains hidden or 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
| 字体'Droid Sans' |
This file contains hidden or 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
| #!/bin/bash | |
| # author: koumm | |
| # desc: auto vsftpd script | |
| # date: 2010-07-30 | |
| # version: v1.1 | |
| # modify: | |
| WEBROOT="/data1/htdocs/www.koumm.com" | |
| FTP_PORT="3000" |
This file contains hidden or 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
| <script>var im_2971a6649dfbd861bd7d04df14543c06 = "<img style='max-height:500px;width:auto;' src=http://hiphotos.baidu.com/54nop/pic/item/939407fb49f406266c22eb5e.jpg>";</script> | |
| <iframe id=im_2971a6649dfbd861bd7d04df14543c06 style="border:0px;overflow:hidden;" | |
| scrolling="no" frameborder="0" src="javascript:parent.im_2971a6649dfbd861bd7d04df14543c06;" | |
| onload="javascript:var x=document.getElementById('im_2971a6649dfbd861bd7d04df14543c06').contentWindow.document.images[0]; | |
| this.width=x.width+10;this.height=x.height+10;"></iframe> |
This file contains hidden or 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
| jQuery(function ($) { | |
| var src = "index.php?route=common/wizard&token=cfcd208495d565ef66e7dff9f98764da"; | |
| $.modal('<iframe src="' + src + '" height="480" width="700" scrolling="no" frameborder="0">', { | |
| closeHTML:"<a href='#' title='Close' class='modal-close'> </a>", | |
| containerCss:{ | |
| backgroundColor:"#fff", | |
| borderColor:"#fff", | |
| height:500, |
This file contains hidden or 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
| 得到radio选中的值 jQuery(":input[name='framesize'][checked]").val(); | |
| DOM方法: | |
| 父窗口操作IFRAME:window.frames["iframeSon"].document | |
| IFRAME操作父窗口: window.parent.document | |
| jquery方法: |
This file contains hidden or 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
| MiiduuNameSpace = typeof(MiiduuNameSpace)=="undefined" ? {} : MiiduuNameSpace; | |
| MiiduuNameSpace.Mini = function (obj) { | |
| this.options = {product_id:0,width:0,height:0,RT:false,itemSize:'single',button:'buynow',ref:escape(location.href),host:'www.miiduu.com'}; | |
| for(var name in this.options) { | |
| if(typeof(obj[name]) !== 'undefined') this.options[name] = obj[name]; | |
| } | |
| } | |
| MiiduuNameSpace.Mini.prototype = { | |
| getWidth: function (){return this.options.width? this.options.width : MiiduuNameSpace.Mini.config.style[this.options.itemSize].width;}, | |
| getHeight: function (){return this.options.height? this.options.height : MiiduuNameSpace.Mini.config.style[[this.options.itemSize]].height;}, |
This file contains hidden or 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
| editplus正则查找php函数 | |
| ^[ \t]*(public |private |protected |static )[ \t]*(static[ \t]*)?function[ \t].*\([^;]*$ | |
| preg_match_all("~href=\"([^\"]+\.css)(?:.*?)\"[^>]*>~isx",$html,$links); 捕获html的link style链接 | |
| function get_all_url($code){ | |
| preg_match_all('/<as+href=["|']?([^>"' ]+)["|']?s*[^>]*>([^>]+)</a>/i',$code,$arr); | |
| return array('name'=>$arr[2],'url'=>$arr[1]); | |
| } |
This file contains hidden or 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
| CREATE TABLE IF NOT EXISTS co_address LIKE address #复制address表结构到表co_address | |
| show tables #列出所有表 | |
| show create table address;#显示address的结构 | |
| select * into destTbl from srcTbl | |
| insert into destTbl(fld1, fld2) select fld1, 5 from srcTbl | |
| 以上两句都是将 srcTbl 的数据插入到 destTbl,但两句又有区别的: | |
| * 第一句(select into from)要求目标表(destTbl)不存在,因为在插入时会自动创建。 | |
| * 第二句(insert into select from)要求目标表(destTbl)存在,由于目标表已经存在,所以我们除了插入源表(srcTbl)的字段外,还可以插入常量,如例中的:5。 |
This file contains hidden or 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
| <?php | |
| function user_login($postdata) { | |
| if(!$db=mysql_pconnect(DB_HOSTNAME,DB_USERNAME,DB_PASSWORD)){ | |
| trigger_error("<li>MySql Error:".mysql_error()."<li>"); | |
| } | |
| if(!mysql_select_db(DB_DATABASE,$db)){ | |
| trigger_error("<li>MySql Error:".mysql_error()."<li>"); | |
| } |