Skip to content

Instantly share code, notes, and snippets.

@lrobot
Last active March 9, 2023 03:46
Show Gist options
  • Save lrobot/f708c124a9f031e4e459bd77cd85e540 to your computer and use it in GitHub Desktop.
Save lrobot/f708c124a9f031e4e459bd77cd85e540 to your computer and use it in GitHub Desktop.
public_notes_desc

this is lead file of all public notes, it file name will be all notes title

基础知识

(大小)病毒<<支原体<<细菌 细菌: 青霉素 头孢(破坏细菌的细胞壁) 支原体(没有细胞壁):阿奇霉素 病毒:

药物

  • 二甲双胍(Metformin)[盐酸二甲双胍肠溶片(安多可)]口服降糖药,广泛应用于2型糖尿病
  • 司百得精氨酸布洛芬颗粒 散结镇痛胶囊 复方磷酸可待因口服液(此管制类阿片类药物因有一定的成瘾性导致的滥用,而被卫生部禁止在未成年中使用) 富马酸酮替芬分散片 阿奇霉素肠溶胶囊 禁用药物 利巴韦林 副作用大 祖卡木颗粒 富马酸酮替芬片 穿心莲滴丸 美洛昔康分散片 注射用醋酸亮丙瑞林微球 感康 #其组分为:每片含对乙酰氨基酚0.25g(解热阵痛)、盐酸金刚烷胺0.1g(抗病毒)、咖啡因15mg(镇痛)、人工牛黄10mg(解毒)、马来酸氯苯那敏(抗过敏)2mg

皮肤类药物

牛黄软膏 达克罗宁 皮康王 百多邦 地塞米松

rip walled garden

VLC

https://wiki.videolan.org/Copy_prevention/ /Applications/VLC.app/Contents/MacOS/VLC -I dummy /Volumes/New/Big\ snow\ ball.mp3 -sout=#transcode{}:standard{access=file,mux=ts,dst=test.mp3} /Applications/VLC.app/Contents/MacOS/VLC -I dummy /Volumes/New/Big\ snow\ ball.mp3 --sout "#duplicate{dst=std{access=file,mux=raw,dst=test.mp3}" 

hardware crack

(IC Packages)chip pin style

unicode(ucs-2,ucs-4,utf8,utf16,utf32)

https://blog.csdn.net/left_la/article/details/36188181

  • UCS-2(niversal Character Set coded in 2 octets)
  • UCS-4(Universal Character Set coded in 4 octets)
  • UTF-16(16-bit Unicode Transformation Format)
  • UTF-8 is a variable-width character encoding
  • BOM(Byte Order Mark) 字节序标志

charset in c++

sizeof(wchar_t)=16 for windows sizeof(wchar_t)=32 for linux and mac so better use char16_t for utf16 and char32 for unicode

macos dylib special

[https://stackoverflow.com/questions/33991581/install-name-tool-to-update-a-executable-to-search-for-dylib-in-mac-os-x]

otool -D #show dylib install-name

otool -l #show execuale's dylib load cmd

google git clone fetch branch-heads

  • .git/config add below config
  • fetch = +refs/branch-heads/:refs/remotes/branch-heads/

chrome content shell

https://cs.chromium.org/chromium/src/headless/app/headless_example.cc https://cs.chromium.org/chromium/src/headless/app/headless_shell.cc https://cs.chromium.org/chromium/src/content/shell/app/shell_main.cc #content shell

webrtc desktop capture

Chromium bulid

  • chrome example get_server_time fix base::CommandLine::Init(argc, argv); //add below two line in get_server_time +base::TaskScheduler::CreateAndStartWithDefaultParams("get_server_time"); +base::i18n::InitializeICU(); and std::string data; fetcher->GetResponseAsString(&data); can print http response body
  • gn --ide=vs --args="remove_webcore_debug_symbols=true is_component_build=true enable_nacl=false target_cpu=""x86"" is_debug=false" gen out\release
  • ninja -C out\release chrome

CP105B double side print how to

  • first print print 1-n even page in normal order
  • second print print 1n odd page in revert order

HL2140 double side print how to

gcc and glibc version map

clang use gcc sysroot for compile and crosscompile

this is clang print for gcc version usage and include header search path [clang|gcc] -E -xc++ -v - < /dev/null with right --sysroot path can let clang work properties

some gcc toolchain dir strcuture not suitable for directly use for clang need define --sysroot=/path/to/mips-gcc472-glibc216-64bit/mips-linux-gnu/libc and (cd mips-gcc472-glibc216-64bit/mips-linux-gnu/libc/lib/ && ln -s gcc ../../../lib/gcc) to adjust dir for clang make full use of this gcc toolchain, ref detail for:https://stackoverflow.com/questions/41962611/how-to-select-a-particular-gcc-toolchain-in-clang

ls mips-gcc472-glibc216-64bit
./bin/mips-linux-gnu-{ar,gcc,g++,addrline,nm,readelf,...}
./mips-linux-gnu/libc{etc,lib,soft-float,uclibc,usr,var}
./lib/gcc/mips-linux-gnu/4.7.2/libgcc.a   
./mips-linux-gnu/include/c++/4.7.2/{list,map,array,ios,..}
$ ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/testing/gmock/gmock/gmock-cardinalities.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_NSS_CERTS=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=1 -DFIELDTRIAL_TESTING_ENABLED -DCR_CLANG_REVISION=\"298539-1\" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1 -I../../testing/gtest/include -I../.. -Igen -I../../testing/gmock_custom -I../../testing/gmock/include -I../../testing/gtest/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -B../../third_party/binutils/Linux_x64/Release/bin -fcolor-diagnostics -m32 -msse2 -mfpmath=sse -mmmx -momit-leaf-frame-pointer -pthread -mstack-alignment=16 -mstackrealign -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-deprecated-register -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -g0 --sysroot=../../build/linux/debian_jessie_i386-sysroot -E -xc++ -v - < /dev/null 
clang version 5.0.0 (trunk 298539)
Target: i386-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/lrobot/webrtc-checkout-linux/src/build/linux/../../third_party/llvm-build/Release+Asserts/bin
Found candidate GCC installation: ../../build/linux/debian_jessie_i386-sysroot/usr/lib/gcc/i586-linux-gnu/4.8
Selected GCC installation: ../../build/linux/debian_jessie_i386-sysroot/usr/lib/gcc/i586-linux-gnu/4.8
Candidate multilib: .;@m32
Selected multilib: .;@m32
 "/home/lrobot/webrtc-checkout-linux/src/third_party/llvm-build/Release+Asserts/bin/clang" -cc1 -triple i386-unknown-linux-gnu -E -disable-free -main-file-name - -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu pentium4 -mfpmath sse -target-feature +sse2 -target-feature +mmx -momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb -ffunction-sections -fdata-sections -resource-dir /home/lrobot/webrtc-checkout-linux/src/third_party/llvm-build/Release+Asserts/lib/clang/5.0.0 -dependency-file obj/testing/gmock/gmock/gmock-cardinalities.o.d -MT -.o -D V8_DEPRECATION_WARNINGS -D USE_UDEV -D USE_AURA=1 -D USE_PANGO=1 -D USE_CAIRO=1 -D USE_NSS_CERTS=1 -D FULL_SAFE_BROWSING -D SAFE_BROWSING_CSD -D SAFE_BROWSING_DB_LOCAL -D CHROMIUM_BUILD -D ENABLE_MEDIA_ROUTER=1 -D FIELDTRIAL_TESTING_ENABLED -D "CR_CLANG_REVISION=\"298539-1\"" -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D _LARGEFILE64_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D NDEBUG -D NVALGRIND -D DYNAMIC_ANNOTATIONS_ENABLED=0 -D GTEST_HAS_POSIX_RE=0 -D GTEST_LANG_CXX11=1 -I ../../testing/gtest/include -I ../.. -I gen -I ../../testing/gmock_custom -I ../../testing/gmock/include -I ../../testing/gtest/include -D __DATE__= -D __TIME__= -D __TIMESTAMP__= -isysroot ../../build/linux/debian_jessie_i386-sysroot -internal-isystem ../../build/linux/debian_jessie_i386-sysroot/usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/c++/4.8 -internal-isystem ../../build/linux/debian_jessie_i386-sysroot/usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/i386-linux-gnu/c++/4.8 -internal-isystem ../../build/linux/debian_jessie_i386-sysroot/usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/i386-linux-gnu/c++/4.8 -internal-isystem ../../build/linux/debian_jessie_i386-sysroot/usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/c++/4.8/backward -internal-isystem ../../build/linux/debian_jessie_i386-sysroot/usr/local/include -internal-isystem /home/lrobot/webrtc-checkout-linux/src/third_party/llvm-build/Release+Asserts/lib/clang/5.0.0/include -internal-externc-isystem ../../build/linux/debian_jessie_i386-sysroot/usr/include/i386-linux-gnu -internal-externc-isystem ../../build/linux/debian_jessie_i386-sysroot/include -internal-externc-isystem ../../build/linux/debian_jessie_i386-sysroot/usr/include -O2 -Wno-builtin-macro-redefined -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-deprecated-register -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -fdeprecated-macro -fdebug-compilation-dir /home/lrobot/webrtc-checkout-linux/src/build/linux -ferror-limit 19 -fmessage-length 230 -pthread -stack-protector 1 -stack-protector-buffer-size 4 -mstackrealign -mstack-alignment=16 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o - -x c++ -
clang -cc1 version 5.0.0 based upon LLVM 5.0.0svn default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "gen"
ignoring nonexistent directory "../../build/linux/debian_jessie_i386-sysroot/usr/local/include"
ignoring nonexistent directory "../../build/linux/debian_jessie_i386-sysroot/include"
ignoring duplicate directory "../../testing/gtest/include"
ignoring duplicate directory "../../build/linux/debian_jessie_i386-sysroot/usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/i386-linux-gnu/c++/4.8"
#include "..." search starts here:
#include <...> search starts here:
 ../../testing/gtest/include
 ../..
 ../../testing/gmock_custom
 ../../testing/gmock/include
 ../../build/linux/debian_jessie_i386-sysroot/usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/c++/4.8
 ../../build/linux/debian_jessie_i386-sysroot/usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/i386-linux-gnu/c++/4.8
 ../../build/linux/debian_jessie_i386-sysroot/usr/lib/gcc/i586-linux-gnu/4.8/../../../../include/c++/4.8/backward
 /home/lrobot/webrtc-checkout-linux/src/third_party/llvm-build/Release+Asserts/lib/clang/5.0.0/include
 ../../build/linux/debian_jessie_i386-sysroot/usr/include/i386-linux-gnu
 ../../build/linux/debian_jessie_i386-sysroot/usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 330 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "<stdin>" 2

webrtc build mips

  • accord webrtc root /build dir ( https://chromium.googlesource.com/chromium/src/build)
  • /build/config/sysroot.gni: "Missing sysroot ($sysroot). To fix, run: build/linux/sysroot_scripts/install-sysroot.py --arch=$_script_arch")
  • build/linux/sysroot_scripts/install-sysroot.py --arch=mips
  • build/linux/sysroot_scripts/install-sysroot.py
    args_val='treat_warnings_as_errors=false fatal_linker_warnings=false target_os="linux" target_cpu="mipsel" is_debug=false rtc_use_dummy_audio_file_devices=true use_glib=false'
    gn --args="${args_val}"  gen out/${out_dir}

diff --git a/install-build-deps.sh b/install-build-deps.sh
    -supported_releases="(trusty|xenial|yakkety|jessie)"
	+supported_releases="(zesty|trusty|xenial|yakkety|jessie)"
diff --git a/expat/BUILD.gn b/expat/BUILD.gn
index a2c2d0c637..208e8ab6e8 100644
--- a/expat/BUILD.gn
+++ b/expat/BUILD.gn
@@ -9,7 +9,7 @@ import("//testing/libfuzzer/fuzzer_test.gni")
 # let's not pull it in twice.
 # Chromecast doesn't ship expat as a system library.
 # Libfuzzer and AFL need to build library from sources.
-if (is_linux && !is_chromecast && !use_libfuzzer && !use_afl) {
+if (is_linux && !is_chromecast && !use_libfuzzer && !use_afl && false) {
   config("expat_config") {
     libs = [ "expat" ]
   }


#because of webrtc/examples/BUILD.gn ref build/config/linux/gtk target with out controled by "use_x11" so use_x11=false can not full disable gtk example bulid, so need disable //webrtc/examples by // commit it in root /BUILD.gn file
gn ls out/x86
gn refs --all out/x86/ //build/config/linux/gtk2  #find who ref this
gn desc out/x86/ //webrtc/examples:peerconnection_client [--blame] #find this target build options desc
#https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/reference.md#refs

# use_x11 can not use in gn gen arg becuase of it define //build/config/ui.gni replace not in declare_args(){} block so it not overridable by args command, we only can disable it by modify //build/config/ui.gni

qemu run mips

mkdir mips32 && cd mip32 && (
wget https://people.debian.org/~aurel32/qemu/mipsel/debian_squeeze_mipsel_standard.qcow2 -o debian_squeeze_mipsel_standard.qcow2
wget https://people.debian.org/~aurel32/qemu/mipsel/vmlinux-2.6.32-5-4kc-malta -o vmlinux-2.6.32-5-4kc-malta
qemu-system-mipsel -M malta -kernel vmlinux-2.6.32-5-4kc-malta -hda debian_squeeze_mipsel_standard.qcow2 -append "root=/dev/sda1 console=tty0"
)

google gn

wget https://chromium.googlesource.com/chromium/src/+archive/lkgr/tools/gn/example.tar.gz tar xzvf example.tar.gz ~/webrtc-checkout-linux/src/buildtools/linux64/gn gen out ninja -C out/ ./out/hello

crypto hardware

hardware debox

hardware toshiba tv(TCL)

  • 东芝电视
  • 批次 TVS1600123
  • 机型 55U66EBC
  • 机芯 MS828
  • 配屏 LVU550NDEL C
  • PID 76
  • 软件版本
  • MBoot
  • MEMC程序
  • 生产日期 2016-07-05
  • https://www.znds.com/rom/404809.html
  • 东芝U6600C-U7600C系列V8-S828S07-LF1V039刷机救砖官方稳定版固件下载 ==================================== 1.强刷救机U盘要求,必须是8GB容量内2.0接口,格式化FAT32,SD卡不可用; 2.下载强刷包并解压,将.bin或.img文件拷贝到U盘根目录,把U盘插在2.0调试口; 3.先拔掉电源,按住电视侧背面电源按键,然后再插上插头; 4.等大约10s,看到指示灯在闪烁了或出现进度条,此时可以松手; 5.等大概5-8分钟升级OK,电视会自动开机,升级过程中不要断电 =================================================== 机型维修 维护信息 https://bbs.banshouhui.com/forum.php?mod=viewthread&tid=31726

ftp://ftp1.sw.tclking.com/SW/Debugging_TS_SW/Mstar/MS828 username: MS828_Factory password: hzfactory

Digispark ATtiny85

todo

battery 电池

  • https://jingyan.baidu.com/article/380abd0aa7a4341d90192cfa.html 9号电池 10450 (7号)AAA 14500(5号)AA| 1.5V 18650 # 32600(1号)D 燃气灶点火
  • 方型锂离子电池芯:通常用六位数字表示,分别表示电池的厚度、宽度和高度 //例如103450 即10(厚度) ×34(宽度) ×50(高度)mm

startup

  • export NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node
  • nvm install 12.13.0 ; nvm use --delete-prefix v12.13.0
  • nvm install v14; nvm use --delete-prefix v14
  • nvm use 12.13.0
  • nvm alias default 14.16.1
  • mkdir testjs && cd testjs && npm init .
  • mkdir testjs && cd testjs && npm init typescript-project
  • npm [-D] install //local install at ./node_modules/ and ./node_modules/.bin, -D mean add to package.json:{devDependencies}
  • npm -g install //globao install at ~/.node/lib/node_modules and ~/.node/bin
  • npm run xxxx # xxx is in package.json:{"scripts":{"xxx":"cmd"}}
  • npx|npm exec #[https://docs.npmjs.com/cli/v7/commands/npm-exec]
  • tsc|npx -p typescript tsc
  • tsc --init #create tsconfig.json
  • ts-node|npx -p ts-node ts-node|npx -p ts-node
  • npm init typescript-project|npx create-typescript-project (create-foo) #[https://docs.npmjs.com/cli/v7/commands/npm-init]

js

import and require

notes

https://zhidao.baidu.com/question/508959649.html SM410564 四位共阳LED模块的引脚功能分布 先让模块正面有段显示的一面朝向我们(即正拿俯视) 上端与下端各有6个管脚, 其中上端从左到右分别是:1,A,F,2,3,B 下端从左到右分别是:E,D,P,C,G,4 1,23,4用于选数数组,a,b,c,d,e,f,g 用于选数码管某一管(段) P是数字旁边的点号的选中 是共阳型数码管,也就是说当s(14)是高电平,段选(ah)是低电平的时候,数码管亮。

七段数码管 https://baike.sogou.com/v68529425.htm https://baike.baidu.com/item/%E4%B8%83%E6%AE%B5%E6%95%B0%E7%A0%81%E7%AE%A1/927592?fr=aladdin

NodeMcu NodeMCU(ESP8266)开发笔记 linux https://blog.csdn.net/Little_Body/article/details/78033973

CP2102 usb2serial chip howto: https://hackaday.io/page/1223-how-to-flash-nodemcu-on-mac-os-x-yosemite

CH340G usb2serial chip https://blog.csdn.net/jazzsoldier/article/details/70171771 http://www.wch.cn/download/CH341SER_MAC_ZIP.html

AMS1117 稳压管

sudo nvram boot-args="mbasd=1" //enable apple usb cdrom to be load in macosx sudo nvram boot-args="kext-dev-mode=1" //no signed driver need this for load

brew tap adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver brew install wch-ch34x-usb-serial-driver

screen /dev/tty.usbserial-1420 9600

to me 0 minutes agoDetails Your NodeMCU custom build finished successfully. You may now download the firmware:

This was built against the release branch and includes the following modules: cron, file, gpio, net, node, tmr,

$ esptool.py --port /dev/tty.usbserial-1420 write_flash -fm dio 0x0000 ~/Downloads/nodemcu-release-8-modules-2021-06-09-14-04-22-integer.bin

macosx build compile for nodemcu

images

  • nodemcu chip pins
  • sm410564,4位共阳数码管

distrub message queue

nsq

  • (website)[https://nsq.io/]
  • (bash for quick-nsq-cluster)[https://anthonysterling.com/posts/quick-nsq-cluster.html]
  • nsqd is the daemon that receives, queues, and delivers messages to clients.
  • nsqlookupd is the daemon that manages topology information. Clients query nsqlookupd to discover nsqd producers for a specific topic and nsqd nodes broadcasts topic and channel information.
  • nsqadmin is a Web UI to view aggregated cluster stats in realtime and perform various administrative tasks.
#!/usr/bin/env bash
    
#I’ve been meaning to look at Bitly’s realtime distributed messaging platform NSQ for a while now. It’s written in Go so it’s easy to deploy, and comes with a built-in HTTP interface for statistics, administration, and producers.
#I thought I’d quickly share this Bash script to start a little NSQ cluster with 2 nsqlookupd hosts, 5 nsqd nodes, and an instance of nsqadmin running on port 9000.

NSQ_VERSION=0.3.5
NSQ_PACKAGE="nsq-$NSQ_VERSION.linux-amd64.go1.4.2"
NSQLOOKUPD_LOG=/var/log/nsqlookupd.log
NSQD_LOG=/var/log/nsqd.log
NSQADMIN_LOG=/var/log/nsqadmin.log
 
wget -nc -qP /usr/src "https://s3.amazonaws.com/bitly-downloads/nsq/$NSQ_PACKAGE.tar.gz"
 
if [ ! -d "/opt/$NSQ_PACKAGE" ]
then
    tar -xzvf "/usr/src/$NSQ_PACKAGE.tar.gz" -C /opt/
    for FILE in "/opt/$NSQ_PACKAGE/bin/*";
    do
        ln -s $FILE /usr/local/bin/
    done
fi
 
for PROCESS in nsqlookupd nsqd nsqadmin;
do
    pkill "$PROCESS"
done
 
for NODE in {1..2};
do
    /usr/local/bin/nsqlookupd \
        -broadcast-address="nsqlookupd-0$NODE" \
        -tcp-address="127.0.0.1:900$NODE" \
        -http-address="127.0.0.1:901$NODE" >> "$NSQLOOKUPD_LOG" 2>&1 &
done
 
for NODE in {1..5};
do
    /usr/local/bin/nsqd \
        -broadcast-address="nsqd-0$NODE" \
        -tcp-address="127.0.0.1:903$NODE" \
        -http-address="127.0.0.1:904$NODE" \
        -lookupd-tcp-address="127.0.0.1:9001" \
        -lookupd-tcp-address="127.0.0.1:9002" >> "$NSQD_LOG" 2>&1 &
done
 
/usr/local/bin/nsqadmin \
    -http-address="0.0.0.0:9000" \
    -lookupd-http-address="127.0.0.1:9011" \
    -lookupd-http-address="127.0.0.1:9012" >> "$NSQADMIN_LOG" 2>&1 &

chrome_webrtc

gn --ide=vs2017 --filters="//content:chrome_webrtc" --sln=chrome_webrtc gen out\vs

turn

https://gist.github.com/uemuraj/1909514059a056f3a024

apt install coturn
    audio_device_core_win.cc
    hr = _ptrEnumerator->EnumAudioEndpoints(
                                 dataFlow,            // data-flow direction (input parameter)
                                 DEVICE_STATE_ACTIVE, //| DEVICE_STATE_DISABLED | DEVICE_STATE_UNPLUGGED,
                                 &pCollection);       // release interface when done
 export IP=1.1.1.1
/usr/local/bin/turnserver --log-file=/tmp/turn.log -V -a -c /usr/local/etc/turnserver/turnserver.conf -u turn_username:turn_password -r ${IP} -L ${IP} -E ${IP} -X ${IP}

export MY_IP=172.21.0.16
export PUBLI_IP=118.89.225.245
/usr/bin/turnserver --log-file=/tmp/turn.log -V -a -c /etc/turnserver.conf -u tcuser:tcpassword -r ${PUBLI_IP} -L ${MY_IP} -E ${MY_IP} -X ${PUBLI_IP}

set WEBRTC_CONNECT=turn:118.89.225.245:3478
set ICE_USER=tcuser
set ICE_PASSWORD=tcpassword
peerconnection_client.exe

REM  peerconnection_client connect to 118.89.225.245 

    return GetEnvVarOrDefault("WEBRTC_CONNECT", "turn:118.89.225.245:3478");

adviced vscode extensions

  • C/C++
  • Python
  • GistPad
  • GitLens
  • SVG / SVG Viewer
  • Graphviz (dot)
  • Markdown+Math
  • CodeSwing
  • markdown-math
  • C/C++ Clang Command Adapter
  • Code Runner
  • EsLint
  • Docker
  • GO
  • Jypyter
  • GN
  • Clang-Format

about chromium

keys

Visual Studio 2017(VS2017)企业版 Enterprise 注册码 序列号:NJVYC-BMHX2-G77MM-4XJMR-6Q8QF Visual Studio 2017(VS2017)专业版Professional 激活码key:KBJFW-NXHK6-W4WJM-CRMQB-G3CDH

public dns

  • 8.8.8.8/8.8.4.4 #google dns
  • 114.114.114.114/114.114.115.115 #114
  • 223.5.5.5/223.6.6.6 #ali dns
  • 208.67.222.222/208.67.220.220 #opendns

gist howto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment