k8s
for ns in `kubectl get ns | awk 'NR>=2{print $1}'` ; do kubectl -n $ns get pod |grep -v -E "Running|Completed" | awk 'NR>=2{print $1}' | xargs kubectl -n $ns delete pod --force --grace-period=0 ;done
iTerm2快速连接
vim ~/login.exp
#!/usr/bin/expect
if {$argc < 2} {
#do something
send_user "usage: $argv0 < <remote_host> <passwd>"
exit
}
set timeout 3
set remote_host [lindex $argv 0]
set passwd [lindex $argv 1]
# 远程登录
spawn ssh kylin@${rem...
解决vnc连接不上
解决目录权限为???所属用户及组也是??
安装Roundcube 提示 Mimetype to file extension mapping: NOT OK
在/config/config.inc.php中加入
$config['mime_types'] = '/web目录/config/mime.types';
vim mime.types (也可 wget http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types)
# This file maps Internet media types to unique file extension(s).
# Alt...