This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fs; | |
use std::fs::File; | |
use std::sync::mpsc::channel; | |
use std::time::SystemTime; | |
use arrow2::error::Error; | |
use arrow2::io::parquet::read::{self, FileReader}; | |
use threadpool::ThreadPool; | |
// wget https://repo.databend.rs/alapha/input.parquet -O /tmp/input.parquet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fs; | |
use std::fs::File; | |
use std::sync::mpsc::channel; | |
use std::time::SystemTime; | |
use arrow2::error::Error; | |
use arrow2::io::parquet::read::{self, FileReader}; | |
use threadpool::ThreadPool; | |
// wget https://repo.databend.rs/alapha/input.parquet -O /tmp/input.parquet |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port: 1090 | |
socks-port: 1080 | |
allow-lan: false | |
mode: Rule | |
log-level: info | |
external-controller: :9090 | |
proxies: ~ | |
proxy-groups: | |
- name: 🚀 节点选择 | |
type: select |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"format_version": 1, | |
"blocks": [ | |
{ | |
"row_count": 1, | |
"block_size": 76, | |
"file_size": 360, | |
"location": [ | |
"53/133/_b/ba4a60013e27479e856f739aefeadfaf_v0.parquet", | |
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## install databend | |
wget "https://github.com/datafuselabs/databend/releases/download/v1.2.279/databend-v1.2.279-x86_64-unknown-linux-musl.tar.gz" | |
tar -xzvf databend-v1.2.279-x86_64-unknown-linux-musl.tar.gz | |
time bin/databend-query local --query """ | |
CREATE FILE FORMAT my_format type = csv field_delimiter = ';' ; | |
WITH AGG AS( | |
select city, min(temperature) x , avg(temperature) y, max(temperature) z from(select \$1::String city, \$2::Float64 temperature from 'fs:///home/sundy/work/1brc/measurements.txt'(file_format => 'my_format')) | |
GROUP BY city |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" To use: install Ollama, clone OpenVoice, run this script in the OpenVoice directory | |
brew install portaudio | |
brew install git-lfs | |
git lfs install | |
git clone https://github.com/myshell-ai/OpenVoice | |
cd OpenVoice | |
git clone https://huggingface.co/myshell-ai/OpenVoice | |
cp -r OpenVoice/* . | |
OlderNewer