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
<style>*{position:relative}</style><table><input></table> | |
<!-- 这段代码在IE6下运行会使ie6直接关闭页面 --> |
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 | |
# | |
# Install: | |
# cur_dir=`pwd` | |
# sudo ln -s $cur_dir/mm.sh /bin/mm | |
#显示彩色文本信息。 | |
function cecho { | |
case $2 in | |
info ) |
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 | |
header("Access-Control-Allow-Origin: *"); | |
header('Content-Type: text/event-stream'); | |
header('Cache-Control: no-cache'); | |
function esFlush($msg){ | |
echo "data: ", $msg, "\n\n"; | |
flush(); | |
} |
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 | |
date_default_timezone_set('Asia/Shanghai'); | |
ob_start(); phpinfo(); | |
$i = ob_get_contents(); | |
ob_end_clean(); | |
$html = str_replace( | |
"module_Zend Optimizer", "module_Zend_Optimizer", | |
preg_replace('%^.*<body>(.*)</body>.*$%ms', '$1', $i) |
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 | |
ob_start(); | |
while (1) { | |
echo str_pad(time(), 4096); | |
sleep(1); | |
ob_flush(); | |
flush(); | |
} |
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
## default settings | |
max_interval=10 | |
max_worker=20 | |
## worker config | |
interval_num=0 | |
worker_num=0 | |
## cmd | |
job='/usr/bin/php /home/www/release/mobile_push/job/msg.php' |
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
@echo off | |
for /f %%i in (clear-list.txt) do ( | |
echo 删除%%i | |
rd %%i | |
) | |
echo. | |
echo 操作完成! | |
echo. |
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
#!/usr/bin/env phantomjs | |
var fs = require('fs'); | |
var page = require('webpage').create(); | |
// Add cookie. | |
var cookie = fs.read('baidu.cookie'); | |
var cookie_lines = cookie.split("\n"); | |
for (i in cookie_lines) { |
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
<html> | |
<script> | |
parent._urlEncode_iframe_callback && parent._urlEncode_iframe_callback(location.search.split('=')[1]); | |
</script> | |
</html> |
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
#!/usr/bin/env ruby | |
# | |
# mass rename | |
# | |
# Old | |
#$ tree | |
#. | |
#├── 3DS《火焰之紋章if》壁紙補完① | |
#│ ├── 3DS\241\266\273\360\321\346\326\256\274y\325\302if\241\267\261\332\274\210\321a\315\352_201573192919.JPG | |
#│ ├── 3DS\241\266\273\360\321\346\326\256\274y\325\302if\241\267\261\332\274\210\321a\315\352_201573192927.JPG |
OlderNewer