例:
docker inspect -f {{.LogPath}} container_name;
| class ExecuteOnExit{ | |
| public: | |
| ExecuteOnExit() = default; | |
| // movable | |
| ExecuteOnExit(ExecuteOnExit&& ) = default; | |
| ExecuteOnExit& operator=(ExecuteOnExit&& ) = default; | |
| // non copyable | |
| ExecuteOnExit(const ExecuteOnExit& e) = delete; |
| inline | |
| std::vector<std::string> getFilesList(std::string dirpath){ | |
| DIR *dir = opendir(dirpath.c_str()); | |
| if (dir == NULL) | |
| { | |
| std::cout << "opendir error" << std::endl; | |
| } | |
| std::vector<std::string> all_path; | |
| struct dirent *entry; |
| #include "csv.h" | |
| inline | |
| std::vector<std::string> split_csv_line(const std::string& str) { | |
| char seperator = ','; | |
| std::vector<std::string> results; | |
| std::string::size_type start = str.find_first_not_of(' '); | |
| std::string::size_type sep = str.find(seperator); | |
| while (sep != std::string::npos) { |
| find_package(Boost REQUIRED COMPONENTS regex filesystem) #要使用的boost库 | |
| if(NOT Boost_FOUND) | |
| message("Not found Boost") | |
| endif() | |
| include_directories(${Boost_INCLUDE_DIRS}) | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include "rbtree.h" | |
| #define rb_parent(r) ((r)->parent) | |
| #define rb_color(r) ((r)->color) | |
| #define rb_is_red(r) ((r)->color==RED) | |
| #define rb_is_black(r) ((r)->color==BLACK) |
| import os | |
| rootdir = "./input_files" | |
| paths = os.listdir(rootdir) | |
| for path in paths: | |
| path = os.path.join(rootdir,path) | |
| if os.path.isfile(path): | |
| #... |
| CC := g++ | |
| C_FLAGS := -std=c++14 -Wall -Wextra | |
| BIN := . | |
| SRC := . | |
| INCLUDE := include | |
| LIB := lib | |
| LIBRARIES := |
| Run sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk update &&\ | |
| apk add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | |
| && echo "Asia/Shanghai" > /etc/timezone \ | |
| && apk del tzdata |
| use mysql; | |
| select host, user from user; | |
| grant all on uic.* to root@'%' identified by '123456' with grant option; | |
| grant all on falcon_portal.* to root@'%' identified by '123456' with grant option; | |
| grant all on dashboard.* to root@'%' identified by '123456' with grant option; | |
| grant all on graph.* to root@'%' identified by '123456' with grant option; | |
| grant all on alarms.* to root@'%' identified by '123456' with grant option; | |
| flush privileges; |