Skip to content

Instantly share code, notes, and snippets.

View haoyunfeix's full-sized avatar

Hao Yunfei haoyunfeix

  • Intel Corporation
View GitHub Profile
@haoyunfeix
haoyunfeix / AdbCommands
Created November 5, 2020 01:42 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
gn --args="proprietary_codecs=true ffmpeg_branding=\"Chrome\" is_debug=false symbol_level=0 is_component_build=false remove_webcore_debug_symbols=true enable_nacl=false" gen test
autoninja -C test chrome
First of all, read https://chromium.googlesource.com/chromium/src/+/lkcr/docs/windows_build_instructions.md
Q: git returns http error 407 from proxy after CONNECT
A: git config --global http.sslVerify false (https://stackoverflow.com/questions/24907140/git-returns-http-error-407-from-proxy-after-connect)
Q: Require UserName for chromium.googlestorage.com after execute 'gclient sync'
A: add a DEPOT_TOOLS_WIN_TOOLCHAIN system variable and set it to 0, means use your locally installed version of Visual Studio (by default, depot_tools will try to use a google-internal version).
First submit(set 1): git push origin HEAD:refs/for/master
update(set 2): git commit --amend; git push origin HEAD:refs/for/master
-- This must need Change-Id in your commit message
sudo add-apt-repository ppa:fcitx-team/nightly && sudo apt-get update
sudo apt install fcitx
im-config
@haoyunfeix
haoyunfeix / md
Created December 20, 2017 02:42
Istanbul and mocha
npm install --save-dev nyc
nyc mocha
@haoyunfeix
haoyunfeix / git-clearHistory
Created July 13, 2017 02:19 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
@haoyunfeix
haoyunfeix / gist:093c19fd2abacb70f05086fd7cd2aded
Last active February 20, 2017 07:26
Installation for realsense testing on Joule Board
# https://securewiki.ith.intel.com/pages/viewpage.action?pageId=510951805
sudo apt-key adv --keyserver keys.gnupg.net --recv-key D6FB2970
echo 'deb http://realsense-alm-public.s3.amazonaws.com/apt-repo xenial main' | sudo tee /etc/apt/sources.list.d/realsense-public.list
sudo apt-get update
sudo apt-get install librealsense-all-dev=0.0.1~rc0-0ubuntu2~16.gbp3bd28d
sudo apt-get install git vim libboost-thread-dev node-legacy npm
sudo npm install -g node-gyp mocha