Skip to content

Instantly share code, notes, and snippets.

View imbushuo's full-sized avatar
👋
Yahallo

Ben (Bingxing) Wang imbushuo

👋
Yahallo
View GitHub Profile
@imbushuo
imbushuo / keybase.md
Created June 13, 2015 10:00
keybase.md

Keybase proof

I hereby claim:

  • I am imbushuo on github.
  • I am imbushuo (https://keybase.io/imbushuo) on keybase.
  • I have a public key whose fingerprint is 1C63 F557 AB07 F091 624F 1BD3 843C 719E 5EDA 5295

To claim this, I am signing this object:

@imbushuo
imbushuo / keybase.md
Created February 10, 2016 01:26
Personal Identity Verification

Keybase proof

I hereby claim:

  • I am imbushuo on github.
  • I am imbushuo (https://keybase.io/imbushuo) on keybase.
  • I have a public key whose fingerprint is 187A 523B EC2F A288 CDBB FEF7 DB8E 2DD2 6A68 5A23

To claim this, I am signing this object:

@imbushuo
imbushuo / Moegirlpedia HotCat Extension Bug Investigation 170329.md
Last active April 1, 2017 05:21
Moegirlpedia HotCat Extension Bug Investigation 17/03/29

Moegirlpedia HotCat Extension Bug Investigation 17/03/29

Condition set

  1. Widget Hotcat is enabled in Gadget settings
  2. In Special:UploadFile page
  3. File validation is enabled and loaded. It seems that not all interface languages have this feature on. Update: It seems that file validation depends on some RL module that takes long time to load.

Reproduce steps

  1. Select a random file and wait for file validation
  2. Select another file
@imbushuo
imbushuo / Widget:Bilibili Incident Report 170331.md
Last active April 1, 2017 05:21
Widget:Bilibili Incident Report 17/03/31

Widget:Bilibili Incident Report 17/03/31

Reproduce steps

  1. Open specific page that contains video collection with post-modified video entities.
  2. Title and video index might not match.

Root cause

The current logic of sorting is inconsistent with backend design. All video entities have been sorted prior to server's response.

@imbushuo
imbushuo / Moegirlpedia Commons image rotation issue investigation.md
Last active April 1, 2017 17:24
Moegirlpedia Commons image rotation issue investigation draft

Moegirlpedia Commons Image Rotation Issue Investigation

Problem behavior

Some users reported issues while mirroring images from Wikipedia Commons to Mogirlpedia Commons. The image is expected to be "rotated" but actually not. Further tries suggest that certain platforms' behavior handling device position might affect image behavior in Moegirlpedia Commons.

photo_2017-04-01_09-45-39.jpg

Initial investigation

@imbushuo
imbushuo / Moegirlpedia Bilibili Video Parsing Services CORS Issue 4-10-2017.md
Last active April 10, 2017 16:29
Moegirlpedia Bilibili Video Parsing Services CORS Issue 4/10/2017

Symptoms

Some users reported that certin subset of videos from Bilibili was unable to be loaded in Moegirlpedia. Further investigation indicates API responses of these videos do not properly include CORS header.

Root cause

Service's upsteram CDN vendor Akamai Technologies caches video queries for performance. However, HTTP header variation is not properly handled. For instance, if a bot sends query request to Akamai Edge without header Origin, Akamai Edge sends back backend response without Access-Control-Allow-Origin and caches it. Further requests to this video (in one day) will have the same response sent back.

Resolution

@imbushuo
imbushuo / CertTools.ps1
Last active February 19, 2018 07:32
Generates certificate and installs it on your phone.
Param
(
[switch]
$InjectOnly,
[Parameter(Mandatory=$True)]
[string]
$ImageDir,
[string]
@imbushuo
imbushuo / MADT.dsl
Last active April 4, 2018 21:33
RaspberryPi 3 aa64 ACPI MADT test
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20180105 (32-bit version)
* Copyright (c) 2000 - 2018 Intel Corporation
*
* Disassembly of MADT.acp, Mon Feb 19 21:28:04 2018
*
* ACPI Data Table [APIC]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
@imbushuo
imbushuo / MADT.dsl
Created February 26, 2019 11:31
SDM850 MADT table
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20190215 (32-bit version)
* Copyright (c) 2000 - 2019 Intel Corporation
*
* Disassembly of ./MADT.aml, Tue Feb 26 06:30:52 2019
*
* ACPI Data Table [APIC]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20190215 (32-bit version)
* Copyright (c) 2000 - 2019 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of DSDT.raw, Sat Mar 02 23:59:24 2019
*
* Original Table Header: