Skip to content

Instantly share code, notes, and snippets.

@esterTion
esterTion / 0_BiliComicWebReader
Last active April 17, 2024 16:13
BiliComicWebReader
shit title placeholder
@esterTion
esterTion / 0_generateMessage
Last active February 22, 2024 05:31
Bang Dream proto dumper
gist title place holder
title placeholder
@esterTion
esterTion / bilibili_dynamic_new.md
Last active October 19, 2023 09:02
b站新动态 api
<?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';
<?php
require_once __DIR__ . '/Workerman-master/Autoloader.php';
use Workerman\Worker;
use Workerman\Connection\AsyncTcpConnection;
use Workerman\Protocols\Websocket;
use Workerman\Lib\Timer;
$udp1 = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
socket_set_option($udp1, SOL_SOCKET, SO_BROADCAST, 1);
<?php
/*
A network packet decoder for Danmaku Kagura (東方ダンマクカグラ)
RIP dankagu 2021.8.4-2022.10.28
*/
class DankaguNetEnc {
private $key;
private $keyUint;
private $round;
@esterTion
esterTion / skel2json.php
Last active November 17, 2021 06:19
Some sort of spine skeleton binary data to json converter
<?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 / pac_add.c
Last active October 20, 2021 19:35
Set a pac url to com.apple.CommCenter (ip1), i.e. cellular data
//
// pac_add.m
// pac_add
//
// https://gist.github.com/esterTion/8bdeb78b35c172a4485f6d9e29476336/edit
//
// Created by esterTion on 2019/4/19.
// xcrun -sdk iphoneos clang -isysroot $THEOS/sdks/iPhoneOS11.2.sdk -arch arm64 -I$THEOS/include -framework Foundation -framework SystemConfiguration -L$THEOS/lib -lactivator main.m -o pac_add
//
@esterTion
esterTion / applink.m
Last active October 20, 2021 19:34
AppLink for iOS 9+ (Symlink app/data dir under Documents/App-link)