// BindEdgeAll(rr, &[]moe.r)
func BindEdgeAll(resultSet *nebula.ResultSet, v interface{}) error {
refType := reflect.TypeOf(v)
refVal := reflect.ValueOf(v)
if refType.Kind() != reflect.Ptr {
return errors.New("类型错误 应该为&[]")
}
// 解引用看内部类型
select concat('KILL ',id,';') from information_schema.processlist where DB != '需要排除的DB' and COMMAND ='Sleep' ;
CREATE USER 'debezium_test'@'%' IDENTIFIED WITH mysql_native_password BY 'xxxx'; # 此处天坑
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'debezium_test'@'%';
GRANT ALL PRIVILEGES ON datapack_fund_and_institution.* TO 'debezium_test'@'%';
GRANT ALL PRIVILEGES ON dataapp_fund_and_institution.* TO 'debezium_test'@'%';
GRANT ALL PRIVILEGES ON delta_fund_and_institution.* TO 'debezium_test'@'%';
GRANT ALL PRIVILEGES ON amac_service.* TO 'debezium_test'@'%';
GRANT ALL PRIVILEGES ON dbv5.* TO 'debezium_test'@'%';
FLUSH PRIVILEGES;
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
FROM alpine:latest | |
WORKDIR /app | |
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \ | |
&& apk add -U tzdata \ | |
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | |
&& echo "Asia/Shanghai" > /etc/timezone |
struct DynFn
{
funcs: Vec<std::pin::Pin<Box<dyn std::future::Future<Output=()>>>>
}
impl DynFn
{
fn new() -> DynFn {
DynFn {
docker run -v "$GOPATH":/go --rm -v "$PWD":/go/src/myapp -w /go/src/myapp -e CGO_ENABLED=0 -e GOOS="linux" -e GOARCH="amd64" golang:1.15-alpine go build -ldflags "-s -w" -v
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
```sh | |
sudo -i | |
cd / | |
mkdir swap | |
cd swap | |
dd if=/dev/zero of=swapfile bs=1024 count=8192000 | |
sudo mkswap swapfile | |
sudo swapon swapfile |
vim ~/.cargo/config
[source.crates-io]
registry = "https://github.com/rust-lang/crates.io-index"
# 替换成你偏好的镜像源
#replace-with = 'sjtu'
#replace-with = 'ustc'
replace-with = 'tuna'
#replace-with = 'rustcc'
NewerOlder