Skip to content

Instantly share code, notes, and snippets.

View 19317362's full-sized avatar

david.wang 19317362

View GitHub Profile
@19317362
19317362 / ubuntu_install_webcamstudio.sh
Created December 5, 2018 00:55 — forked from marcelog/ubuntu_install_webcamstudio.sh
Install webcamstudio in Ubuntu to setup a virtual webcam to use as the phone camera in Android Emulator
#!/bin/bash
apt-get install software-properties-common
dpkg -S add-apt-repository
add-apt-repository ppa:webcamstudio/webcamstudio-dailybuilds
apt-get update
apt-get install webcamstudio
modprobe webcamstudio
@19317362
19317362 / context_fix_gcc49_callcc.patch
Created December 13, 2018 08:14 — forked from Lastique/context_fix_gcc49_callcc.patch
Patch to fix Boost.Context 1.64 for gcc 4.9
From e66b64c1ec0bcc496d3d9212d66959351a5af551 Mon Sep 17 00:00:00 2001
From: Andrey Semashev <[email protected]>
Date: Thu, 20 Apr 2017 22:59:55 +0300
Subject: [PATCH] Fix compilation with gcc 4.9.
The compiler apparently has problems with template ordering, so:
- Remove callcc overloads that have no arguments for the function. These
overloads are ambiguous with the overloads taking variadic args. The
no-args case is covered by the variadic iverloads anyway.
@19317362
19317362 / YUV Sample files.txt
Created December 18, 2018 08:25 — forked from commshare/YUV Sample files.txt
YUV Sample files
http://www.sunrayimage.com/examples.html
http://trace.eas.asu.edu/yuv/ 都是yuv420p的
Example Images Download:
You can download the example images of all the suppoted formats in version 2.
# http://wiki.ros.org/docker/Tutorials/GUI
# mount /etc/group and /etc/passwd read only
# set user from $USER
docker run -ti --rm -v $(pwd):/tmp/hx -w /tmp/hx -v /etc/group:/etc/group:ro -v /etc/passwd:/etc/passwd:ro —user=$USER debian:jessie
@19317362
19317362 / gist:39535979a2e12fdd7634d8b83f574a40
Created January 24, 2019 02:24 — forked from eruffaldi/gist:eb8953dd6aeefa35ac28
Example of CMake easy libraries
# REPLACED BY: https://github.com/eruffaldi/cmakego
# assuming to ave the correct find_package above ...
# requires CMakew 3.0 for supporting INTERFACE library type
if(ZeroMQ_FOUND)
add_library(p::zeromq INTERFACE IMPORTED)
set_property(TARGET p::zeromq PROPERTY INTERFACE_LINK_LIBRARIES ${ZeroMQ_LIBRARY})
set_property(TARGET p::zeromq PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${ZeroMQ_INCLUDE_DIR}")
endif()
@19317362
19317362 / brew-java-and-jenv.md
Created March 2, 2019 01:32 — forked from tomysmile/brew-java-and-jenv.md
How To Install Java 8 on Mac

Install HomeBrew first

brew update
brew tap caskroom/cask
brew install brew-cask

If you get the error "already installed", follow the instructions to unlink it, then install again:

@19317362
19317362 / android_instructions_23.md
Created March 3, 2019 01:21 — forked from agrcrobles/android_instructions_29.md
Setup Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

@19317362
19317362 / golang, ubuntu go get in china.md
Created March 3, 2019 12:55 — forked from alexniver/golang, ubuntu go get in china.md
ubuntu下, 使用shadowsock和Privoxy帮助你在命令行中, 无障碍进行go get

#前言 由于大家都懂的, 国内使用go get的时候, 经常会各种失败, 如果有vpn的话, 打开vpn, 问题就解决了, 但vpn其实挺不灵活的.

相对来说shadowsock则灵活得多.

#解决方案 shadowsock + Privoxy

思路就是, 使用shadowsock建立一个本地sock5代理, 但因为go get 需要http代理, 所以需要使用privoxy把sock5代理转为http代理.

OVERVIEW: LLVM 'Clang' Compiler: http://clang.llvm.org
USAGE: clang -cc1 [options] <inputs>
OPTIONS:
-### Print the commands to run for this compilation
--analyze Run the static analyzer
--migrate Run the migrator
--relocatable-pch Build a relocatable precompiled header
--serialize-diagnostics <value>
@19317362
19317362 / boost-android.md
Created March 21, 2019 20:24 — forked from donaldmunro/boost-android.md
Compile Boost for Android

Compiling Boost for Android

  1. Download Boost and cd to base directory.

  2. Create Android toolchains for desired architectures by running a script as below:

    NDK=/opt/android-sdk/ndk-bundle/
    TOOLCHAINS="$PWD/toolchains/"

rm -rf $TOOLCHAINS