Skip to content

Instantly share code, notes, and snippets.

Avatar

esterTion

View GitHub Profile
View upos_replace.php
<?php
// $return为获取到的durl json
// 按照设置 替换upos服务器
if (isset($_COOKIE['upos_server']) && in_array($_COOKIE['upos_server'], ['ks3u','cosu','kodou','bosu','hw','wcsu','xycdn'])) {
$return = preg_replace_callback('/upos\-hz\-mirror([a-z0-9]+?).acgvideo\.com/', function ($m) {
if (in_array($m[1], ['wcs','ks3','cos','kodo','bos'])) {
if (!empty($_COOKIE['upos_server_legacy'])) {
return 'upos-hz-mirror'.$_COOKIE['upos_server_legacy'].'.acgvideo.com';
}
View 0_DataMeter_13
Manual update timer for DataMeter on iOS 13
SBStatusBarStateAggregator hook is freezing SpringBoard
View 0_PFviewer_Dumper
Dump dlst encrypted comic from PFViewer
https://repo.estertion.win/
View chuni-virtual-base-server.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);
View aokana.php
<?php
// https://store.steampowered.com/app/1044620/
require_once 'UnityBundle.php';
chdir(__DIR__);
$f = fopen('patch.dat', 'r');
$head = fread($f, 1024);
$heads = new MemoryStream($head);
View 0_ArcaeaCountdownScore
Decreasing Arcaea score!
Build with theos
@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(...);
@esterTion
esterTion / pac_add.c
Last active Oct 14, 2019
Set a pac url to com.apple.CommCenter (ip1), i.e. cellular data
View pac_add.c
//
// 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
//
View 0_BiliComicWebReader
shit title placeholder