$ sudo mtr --report --report-wide -c 10 mokfire.net
HOST: Loss% Snt Last Avg Best Wrst StDev
1. 222.73.164.1 0.0% 10 1.3 2.9 1.3 16.6 4.8
2. 222.73.89.229 0.0% 10 0.3 3.9 0.3 36.9 11.6
3. 124.74.166.61 0.0% 10 3.6 3.5 1.8 4.9 1.1
4. 202.101.63.202 0.0% 10 2.8 3.6 1.6 4.9 1.2
5. 202.97.33.34 0.0% 10 1.4 4.0 1.2 28.1 8.5
6. 202.97.33.254 0.0% 10 1.9 1.9 1.7 2.5 0.3
7. 202.97.50.114 0.0% 10 287.5 286.6 284.6 291.6 2.0
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 | |
require_once dirname ( __FILE__ ) . '/' . 'RequestCore.class.php'; | |
class BaiduPCS { | |
public function uploadFile($fullFilename, $remoteFilename, $isTemp = FALSE) | |
{ | |
$url = 'file?method=upload&access_token=' . $this->_accessToken . '&path=' . urlencode($remoteFilename) . ($isTemp?'&type=tmpfile':''); | |
if(PHP_VERSION_ID >= 50500 && class_exists('CURLFile')) | |
$post = ['file_contents' => new CURLFile($fullFilename)]; | |
else |
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 | |
// 略 | |
if($filesize > 262144) | |
{ | |
echo 'Try rapid uploading...', PHP_EOL; | |
// Try rapid upload | |
$fp = fopen($fn, 'rb'); | |
$data = fread($fp, 262144); | |
fclose($fp); | |
$md5s = md5($data); |
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 myfilter($src, $limit = 5) | |
{ | |
$ips = array_map(function ($entry) { return $entry['ip']; }, $src); | |
$ipcount = array_count_values($ips); | |
$filtered_data = array_filter($src, function ($entry) use ($ipcount, $limit) { return $ipcount[$entry['ip']] >= $limit; }); | |
return $filtered_data; | |
} |
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 | |
foreach(range(1, 10) as $i) | |
echo join(' * ', range($i, 1)), ' = ', array_product(range(1, $i)), "\n"; |
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 | |
for($i = 2, $s = '1', $v = 1; $i <= 10; ++$i) | |
echo ($s = $i . ' * ' . $s), ' = ', ($v *= $i), "\n"; |
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
$ eac3to 陈妍希\ -\ 孩子气.m2ts 1:a.h264 2:a.wav | |
M2TS, 1 video track, 1 audio track, 0:04:13, 25p | |
1: h264/AVC, 1080p25 (16:9) | |
2: RAW/PCM, 2.0 channels, 16 bits, 48kHz | |
v01 Extracting video track number 1... | |
a02 Extracting audio track number 2... | |
a02 Reading RAW/PCM... | |
a02 Swapping endian... | |
a02 Writing WAV... | |
v01 Creating file "a.h264"... |
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 | |
IFS=' | |
' | |
DIR=ros_catkin_ws/src/ | |
SUB=0 | |
PUB=0 | |
SVC=0 | |
SVP=0 | |
ACC=0 |
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
eac3to RANMA_DISC_01\BDMV\STREAM\00000.m2ts+RANMA_DISC_01\BDMV\STREAM\00006.m2ts L:\BD\Ranma\001.h264 L:\BD\Ranma\001.wav +5db -down16 -no2ndpass | |
eac3to RANMA_DISC_01\BDMV\STREAM\00001.m2ts+RANMA_DISC_01\BDMV\STREAM\00007.m2ts L:\BD\Ranma\002.h264 L:\BD\Ranma\002.wav +5db -down16 -no2ndpass | |
eac3to RANMA_DISC_01\BDMV\STREAM\00002.m2ts+RANMA_DISC_01\BDMV\STREAM\00008.m2ts L:\BD\Ranma\003.h264 L:\BD\Ranma\003.wav +5db -down16 -no2ndpass | |
eac3to RANMA_DISC_01\BDMV\STREAM\00003.m2ts+RANMA_DISC_01\BDMV\STREAM\00009.m2ts L:\BD\Ranma\004.h264 L:\BD\Ranma\004.wav +5db -down16 -no2ndpass | |
eac3to RANMA_DISC_01\BDMV\STREAM\00004.m2ts+RANMA_DISC_01\BDMV\STREAM\00010.m2ts L:\BD\Ranma\005.h264 L:\BD\Ranma\005.wav +5db -down16 -no2ndpass | |
eac3to RANMA_DISC_01\BDMV\STREAM\00005.m2ts+RANMA_DISC_01\BDMV\STREAM\00011.m2ts L:\BD\Ranma\006.h264 L:\BD\Ranma\006.wav +5db -down16 -no2ndpass | |
eac3to RANMA_DISC_01\BDMV\STREAM\00014.m2ts L:\BD\Ranma\Menu\Menu-01-01.h264 | |
ffmpeg -i RANMA_DISC_01\BDMV\STREAM\00015.m2ts -f image2 "L:\BD\Ranma\ |
$ mtr lg.crissic.net --report-wide -c 5
Start: Sat Apr 19 05:52:10 2014
HOST: host7086 Loss% Snt Last Avg Best Wrst StDev
1.|-- 198.52.214.206 0.0% 5 0.6 0.6 0.6 0.6 0.0
2.|-- 10.255.255.1 0.0% 5 0.6 0.6 0.6 0.7 0.0
3.|-- 172.16.9.2 0.0% 5 4.1 3.5 0.9 4.6 1.3
4.|-- 192.168.255.5 0.0% 5 5.4 4.1 1.3 6.0 1.8
OlderNewer