Skip to content

Instantly share code, notes, and snippets.

@esterTion
esterTion / acfun记录.md
Last active July 25, 2019 06:30
有关视频接口

AHP正在用的flash接口

'http://player.acfun.cn/flash_data?vid=' + pageInfo.sourceId + '&ct=85&ev=3&sign=' + pageInfo.sign + '&time=' + Date.now()
ct=85 ev=3
验referrer
rc4密钥 8bdc7e1a

(怀疑这是猴山人的beta,你看看那个 http://aplay-vod.cn-beijing.aliyuncs.com/acfun/h5.js
http://player.acfun.cn/js_data?vid=5bcac14b0cf2c691dfceccc9&ct=86&ev=4&sign=2_1540645549_5e1c0ab48b9dbd1861463324023a9db8
ct=86 ev=4

@esterTion
esterTion / arc-score.php
Last active July 21, 2019 09:01
Arcaea Api Proxy w/ data recording
<?php
// https://gist.github.com/esterTion/fe184d4e51c2421310bdeba26046f139
$uri = $_SERVER['REQUEST_URI'];
$req = file_get_contents("php://input");
if (empty($_SERVER['HTTP_AUTHORIZATION']) || trim($_SERVER['HTTP_AUTHORIZATION']) === 'Bearer') {
if (substr($uri, 0, 21) === '/5/compose/aggregate?' && $_SERVER['HTTP_APPVERSION'] === '2.0.2') {
header('Content-Type: application/json');
{
"code": 0,
"data": [
{
"pid": 91,
"pname": "2233",
"state": 0,
"purl": "https://i0.hdslb.com/bfs/vip/1096316282b3bacfc184ca7269ff7397886967bb.png",
"emojis": [
{
@esterTion
esterTion / arcaea-frag-award.c
Created April 30, 2019 16:09
pseudo code of fragment award algorithm in Arcaea
void award_fragment() {
int play_award = 0;
int clear_award = 0;
int performance_award = 0;
int first_clear_award = 0;
int partner_award = 0;
int difficulty = Chart->difficulty;
int clear_type = GameResult::getCalculatedClearType(...);
@esterTion
esterTion / 0_coreseek_sphinx_index-reindex-collection
Created October 25, 2018 14:49
colection of coreseek/sphinx configuration & reindex script on biliplus.com
shit title placeholder
@esterTion
esterTion / webp2png.lua
Last active April 26, 2018 14:05
Serves webp as png for Firefox and Safari
--[[
* @Author: esterTion
* requirement: nginx-lua-module, working ffmpeg
* explaination: webp decode and png encode speed should be quick enough to serve on the fly.
* use under {location ~ .+\.webp$}
* Currently deployed under https://redive.estertion.win/
]]
local ua=string.lower(ngx.var.http_user_agent)
local file=ngx.var.document_root..ngx.var.uri
@esterTion
esterTion / 0_puriconeRtech
Last active April 12, 2018 14:45
redive-tech
shit title place holder
@esterTion
esterTion / export.js
Last active March 16, 2018 14:25
GreaseMonkey scripts to ViolentMonkey
/**
* @author esterTion
* before use: npm install xml2js jszip https://github.com/mapbox/node-sqlite3/tarball/master
* place inside profile\gm_scriptss, run, then import violentmonkey.zip
*/
var fs = require('fs');
var parseString = require('xml2js').parseString;
var JSZip = require('jszip');
var sqlite3 = require('sqlite3');
@esterTion
esterTion / snow.htm
Created December 22, 2017 05:55
Quick snowing
<!DOCTYPE html><html>
<head><meta charset="UTF-8"><style>html,body{background:#bababa}</style></head>
<body><script src="snow.js"></script></body>
</html>
@esterTion
esterTion / sdmht_unity3d_hashlist.txt
Last active August 19, 2017 05:13
神代梦华谭 unity3d文件hash历史
游戏卡面打包(CardM,CardL,CardBattle,Master)位于 https://pan.baidu.com/s/1pKVis7D
file list @ 20170818
2941510fd6111254fe3366ff7e79fc72082eeecc BackgroundBattle_10001.unity3d
0fef32d6192a276732a5986ffac199faefa6d07f BackgroundBattle_10002.unity3d
ccb999a3572bbbe266767361f84ca06a0b1133e0 BackgroundBattle_10003.unity3d
c97d6fa557b608d32e0f9697bc2803cc0911a55b BackgroundBattle_10004.unity3d
c259f808ea228a7ce6eec4d9bd7bc78eebdc8ba3 BackgroundBattle_10005.unity3d
d190fc127668f7e714c4fb944c4588772c90cd17 BackgroundBattle_10006.unity3d
24e626bde17623b24c874c3ce327ec722017b74d BackgroundBattle_20001.unity3d