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
#!/bin/bash | |
##################### | |
# 功能:下载官方 kubernetes 镜像 转存到 私有镜像中 | |
#################### | |
################### function ######################### | |
# 警告 | |
color::yello() { | |
local val=$1 | |
echo -e "\033[33m ${val} \033[0m" |
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
//马力全开,使用当前系统所有的CPU | |
numCPUs := runtime.NumCPU() | |
runtime.GOMAXPROCS(numCPUs) |
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
jenkins 自动部署 | |
gitlab git代码管理软件 | |
Yearning SQL审核平台 |
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
MYSQL 查看库状态 | |
show table status from dataname; | |
MYSQL查看某表的状态 | |
show create table tablename; | |
MYSQL 查看所有的引擎 | |
show engines; | |
MYSQL 事物四大特性 |
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
#!/bin/bash | |
######################### | |
# 功能:实现自动备份nginx下的站点 | |
# 版本:v1.0 | |
# 时间:2018/06/04 | |
# 作者:百里 | |
# 最后修改时间:2018/06/05 | |
######################## | |
set +x | |
######################################自定义参数################################### |
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
# curl -sL https://raw.github.com/gist/1450030 | sudo bash | |
sudo apt-get install make gcc g++ automake libtool mysql-client libmysqlclient15-dev libxml2-dev libexpat1-dev | |
#下载 coreseek-3.2.14,里面已经包含 mmsegcd /tmp | |
wget https://dn-agi-public3.qbox.me/20160928135920/coreseek-3.2.14.tar.gz | |
tar xzvf coreseek-3.2.14.tar.gz | |
cd coreseek-3.2.14 | |
cd mmseg-3.2.14 |