Skip to content

Instantly share code, notes, and snippets.

Avatar

esterTion

View GitHub Profile
@esterTion
esterTion / sdmht_unity3d_hashlist.txt
Last active Aug 19, 2017
神代梦华谭 unity3d文件hash历史
View sdmht_unity3d_hashlist.txt
游戏卡面打包(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
View bilibili_dynamic_new.md
View snow.htm
<!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 / export.js
Last active Mar 16, 2018
GreaseMonkey scripts to ViolentMonkey
View export.js
/**
* @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');
View 0_puriconeRtech
shit title place holder
@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_coreseek_sphinx_index-reindex-collection
Created Oct 25, 2018
colection of coreseek/sphinx configuration & reindex script on biliplus.com
@esterTion
esterTion / arcaea-frag-award.c
Created Apr 30, 2019
pseudo code of fragment award algorithm in Arcaea
View arcaea-frag-award.c
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(...);
View Bilibili_VideoClip_VIP_emoji_init.json
{
"code": 0,
"data": [
{
"pid": 91,
"pname": "2233",
"state": 0,
"purl": "https://i0.hdslb.com/bfs/vip/1096316282b3bacfc184ca7269ff7397886967bb.png",
"emojis": [
{
@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');
You can’t perform that action at this time.