Skip to content

Instantly share code, notes, and snippets.

View lizhangqu's full-sized avatar
🙄
沉迷女色中

区长 lizhangqu

🙄
沉迷女色中
View GitHub Profile
@yrom
yrom / shell.cc.patch
Last active May 9, 2020 03:01
patch for flutter 1.12.13 shell/common/shell.cc
diff --git a/shell/common/shell.cc b/shell/common/shell.cc
index bef72617c..b73018a61 100644
--- a/shell/common/shell.cc
+++ b/shell/common/shell.cc
@@ -908,15 +908,28 @@ void Shell::OnAnimatorDraw(fml::RefPtr<Pipeline<flutter::LayerTree>> pipeline) {
[& waiting_for_first_frame = waiting_for_first_frame_,
&waiting_for_first_frame_condition = waiting_for_first_frame_condition_,
rasterizer = rasterizer_->GetWeakPtr(),
- pipeline = std::move(pipeline)]() {
- if (rasterizer) {
@likebamboo
likebamboo / Hook.java
Last active March 30, 2023 09:07
android网络状态hook
/**
* 网络状态hook 工具类<br/>
* Created by wentaoli on 2017/8/4.
*/
public class Hook {
/**
* HookNetworkInfo
*/
public static NetworkInfo networkInfo = buildNetworkInfo(ConnectivityManager.TYPE_MOBILE,
@wavezhang
wavezhang / java_download.sh
Last active April 29, 2024 14:42
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@oasisfeng
oasisfeng / Hack.java
Last active April 6, 2023 04:54
Reflection helper for hacking non-public APIs.
package com.oasisfeng.hack;
import android.support.annotation.CheckResult;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;
import java.io.IOException;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Constructor;
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname