Skip to content

Instantly share code, notes, and snippets.

Avatar

esterTion

View GitHub Profile
@esterTion
esterTion / arcaea-hp-algo.c
Created Jan 18, 2019
pseudo code of hp algorithm in Arcaea
View arcaea-hp-algo.c
ScoreState::init() {
if (skillType == 2) {
this->hp = 100.0;
} else if (this->characterAbility != NULL) {
this->hp = this->characterAbility->hpStart;
} else {
this->hp = 0.0;
}
if (noteCount < 1) {
View arc-probe-server.php
<?php
// https://gist.github.com/esterTion/c673a5e2547cd54c202f129babaf601d
/*
This code is now maintained by yojohanshinwataikei solely
esterTion has retired from this project
*/
chdir(__DIR__);
require_once __DIR__ . '/../webpthumb/Workerman-master/Autoloader.php';
@esterTion
esterTion / arc-score.php
Last active Jul 21, 2019
Arcaea Api Proxy w/ data recording
View arc-score.php
<?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');
@esterTion
esterTion / 0_Arcaea_Api_Switcher
Last active May 31, 2020
Redirect game api call host
View 0_Arcaea_Api_Switcher
shit title place holder
@esterTion
esterTion / acfun记录.md
Last active Jul 25, 2019
有关视频接口
View acfun记录.md

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

iamscottxu/acfun-Html5player里面的接口

(怀疑这是猴山人的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 / 0_coreseek_sphinx_index-reindex-collection
Created Oct 25, 2018
colection of coreseek/sphinx configuration & reindex script on biliplus.com
@esterTion
esterTion / coneshell_extract_metadata.cpp
Last active Apr 2, 2020
Extract metadata from ConeShell (Cygames) processed binary
View coneshell_extract_metadata.cpp
#include <cstdio>
#include <iostream>
#include <cstdint>
using namespace std;
void writeReverse(FILE* f, uint32_t num)
{
char* buf[4];
*(uint32_t*)buf = 0xFFFFFFFF - num;
fwrite(buf, 4, 1, f);
@esterTion
esterTion / skel2json.php
Last active May 28, 2020
Some sort of spine skeleton binary data to json converter
View skel2json.php
<?php
/*
This converter is not finished, and will not be finished.
If you are interested in previewing, use this modified WebGL runtime lib
https://github.com/esterTion/spine-runtimes/tree/3.6/spine-ts
Change the SkeletonJson class to SkeletonBinary to load binary skel data
Usage demo: https://redive.estertion.win/spine/
*/
/*
Some sort of skel binary to json converter
@esterTion
esterTion / webp2png.lua
Last active Apr 26, 2018
Serves webp as png for Firefox and Safari
View webp2png.lua
--[[
* @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_generateMessage
Last active May 27, 2020
Bang Dream proto
View 0_generateMessage
shit title place holder
You can’t perform that action at this time.