Skip to content

Instantly share code, notes, and snippets.

View zhaiduo's full-sized avatar
💭
hello world

Adam zhaiduo

💭
hello world
View GitHub Profile
@zhaiduo
zhaiduo / .gemrc
Created September 23, 2021 16:14 — forked from jch/.gemrc
gemrc example
# http://docs.rubygems.org/read/chapter/11
---
gem: --no-ri --no-rdoc
benchmark: false
verbose: true
update_sources: true
sources:
- http://gems.rubyforge.org/
- http://rubygems.org/
backtrace: true
@zhaiduo
zhaiduo / GoPro RTMP streaming with FFmpeg
Created September 12, 2021 15:35 — forked from laurieainley/GoPro RTMP streaming with FFmpeg
Live streaming from a GoPro Hero3 camera to RTMP server using FFmpeg
Basic Requirements:
Computer with wired and wireless connection
FFmpeg installation: http://www.ffmpeg.org/
GoPro Hero 3+: http://gopro.com/
RTMP server e.g. FMS (http://www.adobe.com/products/adobe-media-server-family.html) or CDN ingest point
Overview:
GoPro Hero3 cameras produce HLS streams which are consumed by control apps and their removeable monitor.
@zhaiduo
zhaiduo / RTMP to M3U8
Last active September 8, 2021 01:46 — forked from RupGautam/RTMP to M3U8
RTMP to M3U8
ffmpeg -re -i "rtmp://example.com/path/file live=1" -hls_time 10 -hls_wrap 7 -hls_list_size 3 -f hls play.m3u8
ffmpeg multiple rtsp cameras into sigle stream to youtube
ffmpeg
-i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
-i "rtsp://xxxxxx:xxxxxx@192.168.1.164/live2.sdp"
-f lavfi -i anullsrc
-filter_complex "
[0:v] setpts=PTS-STARTPTS,scale=800x448,setsar=1[upperleft];
[1:v] setpts=PTS-STARTPTS, scale=800x448,setsar=1[upperright];
➜ work brew install vim
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
drone-cli
==> Updated Formulae
aravis helmfile node-build
goofys libtorrent-rasterbar terragrunt
@zhaiduo
zhaiduo / 远程桌面连接无法验证您希望连接的计算机的身份
Created May 16, 2019 09:08
远程桌面连接无法验证您希望连接的计算机的身份
在Mac下使用RDC到win7,总出现“远程桌面连接无法验证您希望连接的计算机的身份”的提示。
解决方法:
开启组策略中远程桌面链接安全层。
1、开始-运行-gpedit.msc,进入组策略编辑器;
2、找到左侧边栏计算机配置-管理模板-Windows组件-远程桌面服务-远程桌面会话主机-安全项;
3、修改以下两项:
A,远程(RDP)连接要求使用指定的安全层,改为启用,安全层选择RDP
B,要求使用网络级别的身份验证对远程连接的用户进行身份验证,改为禁用;
@zhaiduo
zhaiduo / adb check android mac address
Created May 7, 2019 01:06
adb check android mac address
adb -s deviceID shell ip addr show wlan0 | grep 'link/ether '| cut -d' ' -f6
@zhaiduo
zhaiduo / build.sh
Created January 30, 2019 01:12 — forked from c0ming/build.sh
A script for build iOS7 universal static library with clang
#!/bin/bash
# e.g. libmms http://sourceforge.net/projects/libmms/
# set -x
BUILD_DIR=`pwd`"/build"
STATIC_LIB_NAME="libmms.a"
STATIC_LIB_NAME_ARM="libmms.a.arm"
STATIC_LIB_NAME_X86="libmms.a.x86"
@zhaiduo
zhaiduo / npm problems
Last active November 16, 2018 08:02
npm problems
### NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
add the following to ~/.zshrc
```
export NODEJS_ORG_MIRROR=${NODEJS_ORG_MIRROR-$NVM_NODEJS_ORG_MIRROR}
export IOJS_ORG_MIRROR=${IOJS_ORG_MIRROR-$NVM_IOJS_ORG_MIRROR}
```
. ~/.zshrc
### Error: Python executable "/usr/local/bin/python" is v3.6.4, which is not supported by gyp.
npm install --python=/usr/bin/python2
@zhaiduo
zhaiduo / building-COLLADA2GLTF-MacOS-High-Sierra.md
Created October 20, 2018 07:46 — forked from TimvanScherpenzeel/building-COLLADA2GLTF-MacOS-High-Sierra.md
Building instructions for COLLADA2GLTF for MacOS High Sierra Version 10.13.4
# Tested on MacOS High Sierra Version 10.13.4

# Clone Git repo
git clone git@github.com:KhronosGroup/COLLADA2GLTF.git

cd COLLADA2GLTF

# Apple LLVM version 9.1.0 (clang-902.0.39.1) doesn't include 
@zhaiduo
zhaiduo / codesign_gdb.md
Created September 8, 2018 08:09 — forked from gravitylow/codesign_gdb.md
Codesign gdb on macOS

If you are getting this in gdb on macOS while trying to run a program:

Unable to find Mach task port for process-id 57573: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))
  1. Open Keychain Access
  2. In menu, open Keychain Access > Certificate Assistant > Create a certificate
  3. Give it a name (e.g. gdbc)