Skip to content

Instantly share code, notes, and snippets.

@rming
rming / continue_clone.sh
Last active September 11, 2019 03:43
自动根据分支下载代码的脚本
#!/usr/bin/env bash
# 配置每个 fork 文件存储位置
PATH_FORK=/data/forks/dragonpilot
PATH_GERNBY=${PATH_FORK}/gernby
PATH_OPENPILOT=${PATH_FORK}/openpilot
PATH_DRAGONPILOT=${PATH_FORK}/dragonpilot
# 配置每个 fork 的 git 地址
GIT_GERNBY=https://github.com/Gernby/openpilot
@rming
rming / gist:27911edda129828665a02060eca0f029
Last active September 26, 2019 07:55
What is the difference between dot and "source" ?
#!/sbin/sh
source /sdcard/bash_init.sh
@rming
rming / README-Template.md
Created January 2, 2020 02:46 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@rming
rming / beijing_camera.json
Created January 5, 2020 10:23
进京证摄像头数据
[
{
"id": "jiejing/1.html",
"pathname": "上清桥南天桥南北主路 双向(包括辅路)",
"pointx": "116.364376",
"pointy": "40.023619",
"title": "上清桥南天桥",
"description": "南北双向,位于京藏高速上,包括辅路"
},
{
@rming
rming / How to increase time limit of ADB screen record of Android Kitkat.md
Last active January 8, 2020 11:16
How to increase time limit of ADB screen record of Android Kitkat

I encounter the same problem.

Here is my solution. Briefly speaking, it can be solved by recompiling the android source. Patients are needed.

1, Following the instruction here https://source.android.com/source/initializing.html to initialize a build environment.

2, Download the source code from git (Take about 1 hour with 10 M bandwidth).

3, Modify the path_to_working_directory/frameworks/av/cmds/screenrecord/screenrecord.cpp by changing the kMaxTimeLimitSec to 7200 (means 2 hours).

@rming
rming / aosp repo change branches
Created January 9, 2020 06:50
aosp repo change branches
#show branches
repo branches
#init branch
repo init -b android-6.0.1_r81
#start branch
repo start android-6.0.1_r81 --all
@rming
rming / gist:ae5677de4bae07bddb897550daa4a77f
Created January 15, 2020 07:36
eon set timezone via network
setprop persist.sys.timezone $(curl -s -m5 https://ipapi.co/timezone)
# EXAMPLE OUTPUT
# ==============
# opening device 0xddcc
# connected
# tester present ...
# read data by id: boot software id ...
# 39990-TVA-A110
# read data by id: application software id ...
# 39990-TVA-A150
# read data by id: application data id ...
@rming
rming / build-poppler-0.85-on-ubuntu-18.04.sh
Created February 23, 2020 11:40
build poppler-0.85 on ubuntu 18.04
#
## poppler
#
# dependences
sudo apt-get install build-essential cmake libfreetype6-dev libfontconfig1-dev libnss3-dev libjpeg-dev libcairo2-dev libopenjp2-7-dev libsignon-qt5-dev libgirepository1.0-dev libcurlpp-dev libtiff-dev liblcms2-dev libboost-dev libcurl4-openssl-dev libfuzzy-dev
# get soruce code
wget https://poppler.freedesktop.org/poppler-0.85.0.tar.xz
# extract
tar xvf poppler-0.85.0.tar.xz
# make config