This file contains hidden or 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
| # install bosh cli | |
| wget https://github.com/cloudfoundry/bosh-cli/releases/download/v5.3.1/bosh-cli-5.3.1-linux-amd64 | |
| chmod +x bosh-cli-5.3.1-linux-amd64 | |
| mv bosh-cli-5.3.1-linux-amd64 /usr/local/bin/bosh | |
| # nstall package | |
| apt-get install -y build-essential zlibc zlib1g-dev ruby ruby-dev openssl libxslt-dev libxml2-dev libssl-dev libreadline6 libreadline6-dev libyaml-dev libsqlite3-dev sqlite3 | |
| git clone https://github.com/cloudfoundry/bosh-bootloader bosh && cd bosh | |
| wget https://github.com/cloudfoundry/bosh-bootloader/releases/download/v6.10.18/bbl-v6.10.18_linux_x86-64 |
This file contains hidden or 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
| import inspect | |
| def get_module_function__doc(module): | |
| module = __import__(module) | |
| name_func_tuples = inspect.getmembers(module, inspect.isfunction) | |
| name_func_tuples = [t[1] for t in name_func_tuples if inspect.getmodule(t[1]) == module] | |
| tmp = '' | |
| for _ in name_func_tuples: | |
| tmp = tmp+_.__doc__ | |
| print(tmp) | |
| get_module_function__doc('command') |
This file contains hidden or 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
| from inspect import * | |
| def my_selfexplaining_function(): | |
| """This is my function document string""" | |
| print getdoc(globals()[getframeinfo(currentframe()).function]) | |
| my_selfexplaining_function() |
This file contains hidden or 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/sh | |
| # https://blog.alexellis.io/kubernetes-in-10-minutes/ | |
| apt-get update \ | |
| && apt-get install -qy docker.io | |
| apt-get update && apt-get install -y apt-transport-https \ | |
| && curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
| echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list |
This file contains hidden or 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
| export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" | |
| echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | |
| curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
| sudo apt-get update && sudo apt-get install google-cloud-sdk | |
| gcloud init |
This file contains hidden or 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
| import React from 'react'; | |
| class %CLASS% extends React.Component { | |
| render(){ | |
| } | |
| } | |
| export default %CLASS% | |
This file contains hidden or 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
| sudo add-apt-repository ppa:alessandro-strada/google-drive-ocamlfuse-beta | |
| sudo apt-get update | |
| sudo apt-get install google-drive-ocamlfuse | |
| google-drive-ocamlfuse |
This file contains hidden or 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
| sudo apt install rlwrap | |
| sudo curl https://cht.sh/:cht.sh > /bin/cht.sh | |
| sudo chmod +x /bin/cht.sh |
This file contains hidden or 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
| docker volume create portainer_data | |
| docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer |
This file contains hidden or 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
| git clone https://github.com/vim/vim.git | |
| cd vim | |
| ./configure --with-features=huge --enable-python3interp --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ --enable-rubyinterp --enable-luainterp --enable-perlinterp --with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/ --enable-multibyte --enable-cscope --prefix=/usr/local/vim/ | |
| make install |