python -m venv .venv
source .venv/bin/activate
pip install m3u8downloader
downloadm3u8 -o foo.mp4 spaces_m3u8_url
ffmpeg -i foo.mp4 -b:a 192K -vn bar.mp3
python -m venv .venv
source .venv/bin/activate
pip install m3u8downloader
downloadm3u8 -o foo.mp4 spaces_m3u8_url
ffmpeg -i foo.mp4 -b:a 192K -vn bar.mp3
Eigen has an unsupported spline module where you can fit a spline given some data. Once a spline is fitted you can use it as a function to obtain points inbetween. The following example fits 1D data but can be modified to fit N-dimensional data.
git clone https://gist.github.com/chutsu/815c7c916c329eec85f34690a012f7cb spline_example
g++ -I/usr/include/eigen3 spline_example.cpp -o spline_example
./spline_example
| #!/bin/bash | |
| HYPERTHREADING=1 | |
| function toggleHyperThreading() { | |
| for CPU in /sys/devices/system/cpu/cpu[0-9]*; do | |
| CPUID=`basename $CPU | cut -b4-` | |
| echo -en "CPU: $CPUID\t" | |
| [ -e $CPU/online ] && echo "1" > $CPU/online | |
| THREAD1=`cat $CPU/topology/thread_siblings_list | cut -f1 -d,` |
通过第一篇《使用树莓派3B打造超强路由之一:初装》的努力,树莓派3B已经可以作为一台超低能耗、随身携带的开发用服务器来使用了。但这对于目标——打造超强路由而言,才刚刚开始。接下来,我们需要将其打磨成一台基本的无线路由器。
WARNING 本文所有指令均仅供参考,切勿无脑复制粘贴!