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
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
// ==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
const DELAY_TIME = 1000 | |
async function getRepost(page) { | |
let res = await fetch(`https://m.weibo.cn/api/statuses/repostTimeline?id=4211254174873514&page=${page}`) | |
let obj = await res.json() | |
if (obj.ok !== 1) { | |
return false | |
} | |
return obj.data.data | |
} | |
async function getComment(page) { |
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
0x05, 0x01, // Usage Page (Generic Desktop Ctrls) | |
0x15, 0x00, // Logical Minimum (0) | |
0x09, 0x04, // Usage (Joystick) | |
0xA1, 0x01, // Collection (Application) | |
0x85, 0x30, // Report ID (48) | |
0x05, 0x01, // Usage Page (Generic Desktop Ctrls) | |
0x05, 0x09, // Usage Page (Button) | |
0x19, 0x01, // Usage Minimum (0x01) | |
0x29, 0x0A, // Usage Maximum (0x0A) | |
0x15, 0x00, // Logical Minimum (0) |
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
# /lib/firmware/brcm/brcmfmac43340-sdio.txt works on my CHUWI Hibox | |
# previous version 5G does not work | |
manfid=0x2d0 | |
prodid=0x0653 | |
vendid=0x14e4 | |
devid=0x4386 | |
boardtype=0x0653 | |
boardrev=0x1203 | |
boardnum=22 | |
macaddr=02:0A:F7:2A:3B:4C |
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 |
OlderNewer