Skip to content

Instantly share code, notes, and snippets.

@MatrixMuto
MatrixMuto / lldbclient.cmd
Created June 8, 2023 07:04
lldb client script on windows use ndk
D:\android-ndk-r25c\toolchains\llvm\prebuilt\windows-x86_64\bin\lldb.cmd
@MatrixMuto
MatrixMuto / logcat.md
Last active December 16, 2022 03:11
logcat
/*
* Single layer cache of four properties. Priorities are:
*    log.tag.<tag>
*    persist.log.tag.<tag>
*    log.tag
*    persist.log.tag
* Where the missing tag matches all tags and becomes the
* system global default. We do not support ro.log.tag* .
*/
@MatrixMuto
MatrixMuto / hello-jnicallback.c
Created July 6, 2017 06:47
hello-jnicallback from ndk sample
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@MatrixMuto
MatrixMuto / nginx.conf
Last active July 4, 2017 14:37
setup nginx rtmp
rtmp {
server {
listen 1935;
chunk_size 4000;
# TV mode: one publisher, many subscribers
application mytv {
# enable live streaming
live on;
# publish only from localhost
allow publish 115.195.179.6;
@MatrixMuto
MatrixMuto / BUILD.gn
Last active June 12, 2017 23:28
webrtc local peer connection example
rtc_executable("mytest") {
testonly = true
sources = [
"mytest/mytest.cc",
]
deps = [
"../base:rtc_base",
"//webrtc/base:rtc_base_approved",
"//webrtc/p2p:rtc_p2p",
"//webrtc/pc:rtc_pc",
@MatrixMuto
MatrixMuto / 0_reuse_code.js
Created January 12, 2016 20:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console