diff --git a/AudioProcess/wave_display_in_real_time.md b/AudioProcess/wave_display_in_real_time.md new file mode 100644 index 0000000..a10a551 --- /dev/null +++ b/AudioProcess/wave_display_in_real_time.md @@ -0,0 +1,20 @@ +# 实时读取显示波形和频谱 +> 环境: Ubuntu16.04 python2.12 matplotlib + +> 源码: https://github.com/lightjiang/AudioProcess + +## 效果图 +![img1](https://github.com/lightjiang/AudioProcess/raw/master/audio_process_1.png) +![img2](https://github.com/lightjiang/AudioProcess/raw/master/audio_process_2.png) + +发 呜呜~ 音, 低频部分明显上升 +![img3](https://github.com/lightjiang/AudioProcess/raw/master/audio_process_3.png) + + + + +傅里叶变换直接调用的numpy.fft工具,大概就能看个分布趋势吧 + +matplot动图更新频率因为帧读取长度选择而定,调高没用, read会阻塞住 + +其他的就看看源码吧,就不到一百行代码,自己随便调调试试就行 \ No newline at end of file diff --git a/docker/docker.md b/docker/docker.md index 2f69c76..edfee8d 100644 --- a/docker/docker.md +++ b/docker/docker.md @@ -31,3 +31,9 @@ EOF sudo systemctl daemon-reload sudo systemctl restart docker ``` + + +``` bash + +docker run -p 27017:27017 -v $PWD/db:/data/db -d mongo:3.2 +``` \ No newline at end of file diff --git a/gfw/shadowsockes.md b/gfw/shadowsockes.md index 44929e1..ce2b3c4 100755 --- a/gfw/shadowsockes.md +++ b/gfw/shadowsockes.md @@ -81,4 +81,18 @@ server server1 ******:3801 maxconn 20480 ``` -haproxy -f /etc/haproxy/haproxy.cfg \ No newline at end of file +haproxy -f /etc/haproxy/haproxy.cfg + + + +## proxychain + +``` bash + +git clone https://github.com/rofl0r/proxychains-ng.git +cd proxychain +make +make install +make install-config + +``` \ No newline at end of file diff --git a/go/install.md b/go/install.md new file mode 100644 index 0000000..4866ffa --- /dev/null +++ b/go/install.md @@ -0,0 +1,59 @@ +# go环境部署 + +- Ubuntu 16.04/64 +- referring to : https://golang.google.cn/doc/install + +## download + +- https://golang.google.cn/dl/ + + +## install + +``` bash +tar -C /usr/local -xzf go1.9.3.linux-amd64.tar.gz +``` + +## add path + +``` bash +export PATH=$PATH:/usr/local/go/bin +``` + +## create workspace + +``` bash +mkdir ~/go +mkdir ~/go/src +mkdir ~/go/bin +``` + +## hello world + +``` bash +mkdir ~/go/src/hello +nano ~/go/src/hello/hello.md +``` +add fellows +``` go +package main + +import "fmt" + +func main() { + fmt.Printf("hello, world\n") +} +``` + +``` bash +cd ~/go/src/hello + +go build +./hello + +# or + +go install +cd ~/go/bin +./hello +``` \ No newline at end of file diff --git a/python/command b/python/command.md similarity index 100% rename from python/command rename to python/command.md diff --git a/python/dlib.md b/python/dlib.md new file mode 100644 index 0000000..05b73da --- /dev/null +++ b/python/dlib.md @@ -0,0 +1,19 @@ +# dilib使用笔记 + +## installation + +``` bash +git clone https://github.com/davisking/dlib.git + +# 编译 +cd dlib +mkdir build +cd build +cmake .. -DDLIB_USE_CUDA=0 -DUSE_AVX_INSTRUCTIONS=1 +cmake --build + +# 编译安装python包 +cd .. +python3 setup.py install --yes USE_AVX_INSTRUCTIONS --no DLIB_USE_CUDA + +``` \ No newline at end of file diff --git a/python/pyaudio.md b/python/pyaudio.md new file mode 100644 index 0000000..44ea2b8 --- /dev/null +++ b/python/pyaudio.md @@ -0,0 +1,2 @@ +sudo apt-get install portaudio19-dev python-all-dev python3-all-dev +pip install pyaudio \ No newline at end of file diff --git a/ubuntu/sysmonitor.md b/ubuntu/sysmonitor.md new file mode 100644 index 0000000..f463385 --- /dev/null +++ b/ubuntu/sysmonitor.md @@ -0,0 +1,10 @@ + +# Ubuntu 实时显示网速、CPU占用等状态 + + +``` bash +sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor +sudo apt-get update +sudo apt-get install indicator-sysmonitor +indicator-sysmonitor & +``` \ No newline at end of file diff --git a/ubuntu/zsh.md b/ubuntu/zsh.md new file mode 100644 index 0000000..0da7aaa --- /dev/null +++ b/ubuntu/zsh.md @@ -0,0 +1,8 @@ + + +``` bash +sudo apt install -y zsh +sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" +chsh -s /bin/zsh +sudo reboot -h now +``` \ No newline at end of file diff --git a/vue/eslint.md b/vue/eslint.md new file mode 100644 index 0000000..83560eb --- /dev/null +++ b/vue/eslint.md @@ -0,0 +1,16 @@ +# vue eslint config + + +## .eslintrc.js +``` +# rules: +'camelcase': 0, +``` + +## .eslintignore + +``` bash +build/*.js +config/*.js +src/libs/*.js +``` \ No newline at end of file diff --git a/vue/start_project.md b/vue/start_project.md index e0d4079..818b6da 100755 --- a/vue/start_project.md +++ b/vue/start_project.md @@ -1,4 +1,7 @@ # Start a vue project +npm install -g vue +npm install -g vue-cli +npm install -g cnpm --registry=https://registry.npm.taobao.org vue init webpack-simple myproject @@ -6,4 +9,4 @@ cd myproject npm install -npm run dev +npm run dev \ No newline at end of file