This file contains 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
package | |
{ | |
import flash.display.MovieClip; | |
import TryCatchTest.MyError | |
import TryCatchTest.MyError2 | |
import flash.system.ApplicationDomain | |
import flash.system.SecurityDomain | |
import flash.system.LoaderContext | |
import flash.net.URLRequest | |
import flash.display.Loader; |
This file contains 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 requests | |
import time | |
from hashlib import md5 | |
def demo(roomId): | |
tt = int(time.time()) | |
signContent = 'lapi/live/thirdPart/getPlay/%d?aid=pcclient&rate=0&time=%d9TUk5fjjUjg9qIMH3sdnh' % (roomId, tt) | |
sign = md5(signContent).hexdigest() | |
url = 'http://coapi.douyucdn.cn/lapi/live/thirdPart/getPlay/%d?rate=0' % roomId | |
This file contains 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
// ==UserScript== | |
// @name Stream Test | |
// @namespace http://imspace.cn/gms | |
// @match *://*/* | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== | |
function getBodyChecker () { | |
let c = 0; | |
let ret = function (buffer) { |
This file contains 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
15 00 01 00 00 // X = 0x100 | |
LABEL: | |
0E // X++ | |
12 // A = [X] | |
0B // putchar(A) | |
0C 00 01 00 00 // loop | |
15 10 01 00 00 | |
0E // X++ |
This file contains 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
const axios = require('axios').default | |
const http = require('http') | |
const https = require('https') | |
const path = require('path') | |
const fs = require('fs') | |
const Transform = require('stream').Transform | |
const promisePipe = require('promisepipe') | |
const mkdirp = require('mkdirp') | |
const SpaceProgress = require('./space-progress') | |
const spaceProgress = new SpaceProgress(process.stderr) |
This file contains 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
((async () => { | |
const sleep = ms => new Promise(r => setTimeout(r, ms)) | |
class IdleUnload { | |
/** | |
* @param obj Unloadable 对象 | |
* @param idleTime 超时时间 单位为秒 | |
*/ | |
constructor(obj, idleTime) { | |
this.obj = obj; | |
this.loaded = false; |
This file contains 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
alias mcpeserver=docker run -p 19132:19132/udp -d mcpeserver | |
alias project=cd /d D:\project\ | |
alias run-daemon=docker run -p 127.0.0.1:5666:5666 -p 6881:6881 -p 6882:6882/udp -v E:\downloads:/downloads -d space-daemon | |
set TERM=xterm-256color |
This file contains 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
from idaapi import * | |
from idc import * | |
from idautils import * |
This file contains 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
{ | |
"update_time": 153916320, | |
"list": [{ | |
"name": "服务器1", | |
"address": "0.0.0.0:1234", | |
"description": "服务器描述, 比如服务器官网之类的" | |
}] | |
} |
This file contains 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
const dgram = require('dgram') | |
const crypto = require('crypto') | |
function udpPing (server, port = 11451, timeout = 1000) { | |
return new Promise((resolve, reject) => { | |
const socket = dgram.createSocket('udp4') | |
const myReject = (err) => { | |
socket.close() | |
reject(err) | |
} |
OlderNewer