摘要:
1 #!/usr/expect/bin/expect -f 2 3 4 set loginuser [lrange $argv 0 0] 5 set loginpass [lrange $argv 1 1] 6 set ipaddr [lrange $argv 2 2] 7 set port ... 阅读全文
摘要:
移动设备:用户代理:http://techpatterns.com/downloads/firefox/useragentswitcher.xmlNOSCRIPT: --> 阅读全文
摘要:
w #查看当前登录用户,或者whouptimenetstat -a #查看路由信息route -nroute add default gw 10.10.4.13 #新增默认路由WHOIS服务器:whois.apnic.net# 排序sort -r# 第一行head -n 1# 最后一行tail -n 1#左边上传到右边,拷贝文件夹,结果拷到 /tmp/dir/tmpscp -P22345 -r /tmp root@200.200.151.237:/tmp/dir#左边上传到右边,拷贝文件,结果拷到 /tmp/zone.logscp -P 22345 /tmp/zone.log root@200 阅读全文
摘要:
16:9和16:10 LCD宽屏桌面壁纸-----------------------------------宽屏本本液晶屏专用壁纸 (1280x800)HDTV液晶电视宽屏壁纸 (1366x768)17寸/19寸宽屏液晶壁纸 (1440x900)20寸/21寸/22寸宽屏液晶壁纸 (1680x1050)23寸-28寸液晶宽屏壁纸 (1920x1200)30寸液晶宽屏壁纸 (2560x1600)///////////////////////////////////////////////////////5:4和4:3 标准屏桌面壁纸------------------------------- 阅读全文
摘要:
f.*)(?Pb.*)/', 'Hello foobar', $matches);echo "f* => " . $matches['fstar']; // prints 'f* => foo'echo "b* => " . $matches['bstar']; // prints 'b* => bar'echo '';preg_match('/(?:H.*) (f.*)(b.*)/', 'Hello f 阅读全文
摘要:
1. GBK (GB2312/GB18030)\x00-\xff GBK双字节编码范围\x20-\x7f ASCII\xa1-\xff 中文\x80-\xff 中文2. UTF-8 (Unicode)\x4e00-\x9fa5 (中文,含有繁体) \x4e00-\x9fff (包括其他繁体)... 阅读全文
摘要:
php内存不足诱因有3:1. memory_limit2. RLimitMEM 200000000 in httpd.conf3. ulimit -a 或 文件/usr/sbin/httpd限制了ulimitfile_put_contents函数会自动加排他锁LOCK_EX$formatted = sprintf("%020.2f", $money); //20表示总长20位(包括小数点),若结果超过20位,则以结果为准天气API:http://www.google.com/ig/api?weather=广州 http://www.google.com/ig/api?wea 阅读全文
摘要:
统计函数的参数不能使用别名,如 sum(A+B)select 0 = 0000-00-00; //结果为1(true),也就是说全0的日期等价于0, php中也成立,且empty(0)为trueselect (@count:=@count+1) rowid from (select (@count:=0)) A; //其中A和:=都是必须的,否则会报错select * from (select * from table_name) A, table_name2 //在mysql查询时,只要其中一个表的子查询查询结果为空,则所有结果也为空复制表(只复制结构,源表名:a 新表名:b)SQL: se 阅读全文