sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminatorTerminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
| #!/bin/bash | |
| # Usage: ./get_kubeconfig_custom_cluster_rancher2.sh cluster_name | |
| # Needs to be run on the server running `rancher/rancher` container | |
| # Check if jq exists | |
| command -v jq >/dev/null 2>&1 || { echo "jq is not installed. Exiting." >&2; exit 1; } | |
| # Check if clustername is given | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 [clustername]" |
| # 又拍云 python sdk 添加更新缓存的接口 | |
| def update_cache(self, urls): | |
| """ | |
| >>> url1 = "http://kaka.b0.upaiyun.com/kaka_001.flv" | |
| >>> url2 = "http://kaka.b0.upaiyun.com/kaka_002.flv" | |
| >>> urls = [url1, url2] | |
| >>> res = up.update_cache(urls) | |
| >>> return tuple (status, content) | |
| """ |