Skip to content

Instantly share code, notes, and snippets.

@stawidy
stawidy / speedtest-server-list.txt
Created December 27, 2018 04:44
Speedtest 节点列表
17584) Chongqing Mobile Company (Chongqing, CN)
5726) China Unicom Chong Qing Branch (Chongqing, China)
5530) CCN (Chongqing, China)
19076) China Telecom (ChongQing, China)
20054) YunJinTianFu (Chengdu, China)
11444) University of Electronic Science and Technology of China (Chengdu, China)
2461) China Unicom (Chengdu, China)
4575) China Mobile Group Sichuan (Chengdu, China)
16398) China Mobile,GuiZhou (Guiyang, China)
5292) China Mobile Group Shaanxi Company Limited (Xi'an, China)
@stawidy
stawidy / superspeed.sh
Last active December 26, 2018 03:25
superspeed.sh without root
#!/usr/bin/env bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
SKYBLUE='\033[0;36m'
PLAIN='\033[0m'
# install speedtest
if [ ! -e '/tmp/speedtest.py' ]; then
@stawidy
stawidy / update-binary
Created September 1, 2018 10:56
Fix Xiaomi.eu MIUI10 (based on Nougat) FEB
#!/sbin/sh
tmp=/tmp/eufix-force-fbe
if [ "$3" ]; then
zip=$3
console=/proc/$$/fd/$2
# write the location of the console buffer to /tmp/console for other scripts to use
echo "$console" > /tmp/console
else
@stawidy
stawidy / cp8675源码修正.md
Created March 1, 2018 01:22
LineageOS 13.0 for Coolpad 8675-A 源码修正

hardware/qcom/display-caf/msm8916/libhwcomposer/hwc_qclient.cpp 里面的 bw_flag = MDSS_MAX_BW_LIMIT_CAMERA; 改成 bw_flag = 0x2;

@stawidy
stawidy / cp8675.xml
Created March 1, 2018 01:20
Coolpad 8675-A 编译配置
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="stawidy/android_device_coolpad_cp8675" path="device/coolpad/cp8675" remote="github" revision="cm-13.0" />
<project name="stawidy/android_vendor_coolpad_cp8675" path="vendor/coolpad/cp8675" remote="github" revision="cm-13.0" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-13.0" />
<project name="LineageOS/android_external_sony_boringssl-compat" path="external/sony/boringssl-compat" remote="github" revision="cm-13.0" />
<project name="LineageOS/android_external_stlport" path="external/stlport" remote="github" revision="cm-13.0" />
</manifest>
@stawidy
stawidy / lede-deps.txt
Created November 9, 2017 10:15
LEDE 编译依赖
build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev libltdl-dev xmlto