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 | |
# Kiểm tra xem cả password và token đã được cung cấp chưa | |
if [ -z "$1" ] || [ -z "$2" ]; then | |
echo "Lỗi: Vui lòng cung cấp mật khẩu và ngrok token làm đối số." | |
echo "Ví dụ: curl ... | bash <mật_khẩu> <ngrok_token>" | |
exit 1 | |
fi | |
PASSWORD="$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
import os | |
import time | |
import random | |
import argparse | |
def create_random_files(folder_path, num_files, min_size, max_size): | |
open_times, write_times, close_times = 0, 0, 0 | |
for i in range(1, num_files + 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
<?xml version="1.0" encoding="utf-8"?> | |
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="urn:mpeg:dash:schema:mpd:2011" | |
xmlns:cenc="urn:mpeg:cenc:2013" | |
xmlns:mspr="urn:microsoft:playready" | |
xmlns:xlink="http://www.w3.org/1999/xlink" | |
xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd" | |
profiles="urn:mpeg:dash:profile:isoff-live:2011" | |
type="dynamic" | |
minimumUpdatePeriod="PT6S" |
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
{ | |
"ec":0, | |
"data":{ | |
"id":"5fc8673ddcae0a001b9b0839", | |
"livestreamUrl":"http://staticlivegw.mocha.com.vn/origin/playlist/5fc8673ddcae0a001b9b0839/master.m3u8", | |
"description":"", | |
"name":"viettel livestream - 2020-12-03", | |
"accountId":"viettel", | |
"duration":8907, | |
"heath":"acceptable", |
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
video.addEventListener('error', handleVideoEvent); | |
function handleVideoEvent(evt) { | |
let data = ''; | |
switch(evt.type) { | |
case 'error': | |
data = Math.round(evt.target.currentTime*1000); | |
if(evt.type === 'error') { | |
let errorTxt, mediaError=evt.currentTarget.error; |
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
./objs/srs.master.log:15031:[2019-05-31 19:55:24.591][trace][8008][2467] <- CPB time=0, okbps=1,0,0, ikbps=2178,0,0, mr=0/350, p1stpt=20000, pnt=300000 | |
./objs/srs.master.log:15113:[2019-05-31 20:00:25.069][trace][8008][2486] <- CPB time=0, okbps=1,0,0, ikbps=2067,0,0, mr=0/350, p1stpt=20000, pnt=300000 | |
./objs/srs.master.log:15183:[2019-05-31 20:05:25.069][trace][8008][2486] <- CPB time=19734, okbps=0,0,0, ikbps=2003,1783,2013, mr=0/350, p1stpt=20000, pnt=300000 | |
./objs/srs.master.log:15433:[2019-05-31 20:12:14.293][trace][8008][2553] <- CPB time=0, okbps=1,0,0, ikbps=1598,0,0, mr=0/350, p1stpt=20000, pnt=300000 | |
./objs/srs.master.log:15491:[2019-05-31 20:12:55.229][trace][8008][2566] <- CPB time=0, okbps=1,0,0, ikbps=1781,0,0, mr=0/350, p1stpt=20000, pnt=300000 | |
./objs/srs.master.log:15653:[2019-05-31 20:16:24.460][trace][8008][2602] <- CPB time=0, okbps=1,0,0, ikbps=1987,0,0, mr=0/350, p1stpt=20000, pnt=300000 | |
./objs/srs.master.log:15731:[2019-05-31 20:17:47.600][trace][8008][2618] <- CPB time=0, okbps=1,0,0, 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
// ... | |
function checkBelongsTo(installationId, userId, cb) { | |
Installation.findById(installationId, function (err, inst) { | |
cb(err, !err && inst && inst.userId == userId); | |
}); | |
} | |
var ERR_403 = new Error("Forbidden"); | |
ERR_403.status = ERR_403.statusCode = 403; |
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
{ | |
"_id" : ObjectId("547c29516123c77416c14cf8"), | |
"logs" : { | |
"12" : { | |
"type" : 131, | |
"msg" : { | |
"big" : 10, | |
"small" : 5, | |
"card" : { | |
"117700" : [ |
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
function Hand(cards) { | |
this.cards = cards.map(function(card) { return new Card(card); }); | |
this.sortCards(); | |
this.organized = this.organizeHand(); | |
} | |
Hand.prototype.sortCards = function() { | |
this.cards.sort(function(a, b) { | |
return a.getValue() - b.getValue(); | |
}); |
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 | |
# Variables | |
USER_AND_HOST=$1 | |
line="---------------------------------------------" | |
echo "REGISTERING RSA PUBLIC KEY WITH HOST: $REMOTE_HOST" | |
echo $line |
NewerOlder