I am stucking on kubernetes autocompletion on my macbook for a while. Whatever I try with the document (https://kubernetes.io/docs/tasks/tools/install-kubectl/#enabling-shell-autocompletion) it does not work
# install fish
$ brew install fish
I am stucking on kubernetes autocompletion on my macbook for a while. Whatever I try with the document (https://kubernetes.io/docs/tasks/tools/install-kubectl/#enabling-shell-autocompletion) it does not work
# install fish
$ brew install fish
| # Check gist comments to verify system PATH and or adapt it. | |
| wget https://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz | |
| tar zxvf glibc-2.18.tar.gz | |
| cd glibc-2.18 | |
| mkdir build | |
| cd build | |
| ../configure --prefix=/opt/glibc-2.18 | |
| make -j4 | |
| sudo make install | |
| export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib |
| function addComments(arg, name) { | |
| // 当参数前的注释不存在的情况, 加入 webpackChunkName 注释 | |
| if (!arg.leadingComments) { | |
| arg.leadingComments = [ | |
| { | |
| type: 'CommentBlock', | |
| value: ` webpackChunkName: '${name}' `, | |
| }, | |
| ] | |
| } |
| #!/usr/bin/env bash | |
| # Based on: http://godlessheathenmemoirs.blogspot.com.au/2015/03/homebrew-aka-brew-on-mac-os-x-behind.html | |
| function usage() { | |
| echo 2>&1 "" | |
| echo 2>&1 "usage: $(basename $0) PROXY_HOST PROXY_PORT" | |
| exit 1 | |
| } | |
| PROXY_HOST=${PROXY_HOST:-$1} |
| alias kc='kubectl' | |
| alias kclf='kubectl logs --tail=200 -f' | |
| alias kcgs='kubectl get service -o wide' | |
| alias kcgd='kubectl get deployment -o wide' | |
| alias kcgp='kubectl get pod -o wide' | |
| alias kcgn='kubectl get node -o wide' | |
| alias kcdp='kubectl describe pod' | |
| alias kcds='kubectl describe service' | |
| alias kcdd='kubectl describe deployment' | |
| alias kcdf='kubectl delete -f' |
| import * as Rx from "rxjs/Rx"; | |
| import * as uuid from "uuid"; | |
| import {IRequest} from "./common"; | |
| let button = document.querySelector("button"); | |
| let iframe = document.createElement("iframe"); | |
| iframe.src = "/proxy.html"; | |
| document.body.appendChild(iframe); |
| npm set registry https://r.npm.taobao.org # 注册模块镜像 | |
| npm set disturl https://npm.taobao.org/dist # node-gyp 编译依赖的 node 源码镜像 | |
| ## 以下选择添加 | |
| npm set sass_binary_site https://npm.taobao.org/mirrors/node-sass # node-sass 二进制包镜像 | |
| npm set electron_mirror https://npm.taobao.org/mirrors/electron/ # electron 二进制包镜像 | |
| npm set ELECTRON_MIRROR https://cdn.npm.taobao.org/dist/electron/ # electron 二进制包镜像 | |
| npm set puppeteer_download_host https://npm.taobao.org/mirrors # puppeteer 二进制包镜像 | |
| npm set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver # chromedriver 二进制包镜像 | |
| npm set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver # operadriver 二进制包镜像 |
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| npm config delete proxy |
| /** | |
| * Simple authentication and authorization example with passport, node_acl, | |
| * MongoDB and expressjs | |
| * | |
| * The example shown here uses local userdata and sessions to remember a | |
| * logged in user. Roles are persistent all the way and applied to user | |
| * after logging in. | |
| * | |
| * Usage: | |
| * 1. Start this as server |