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
| echo "Install dependence" | |
| sudo apt-get update | |
| sudo apt-get -y install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg-agent \ | |
| software-properties-common |
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
| version: "2.1" | |
| services: | |
| influxdb: | |
| image: influxdb | |
| restart: always | |
| volumes: | |
| - ./config/influxdb.conf:/etc/influxdb/influxdb.conf:ro | |
| - ./collectd/types.db:/usr/share/collectd/types.db | |
| - ./influxdb_data:/var/lib/influxdb |
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
| ipset -N chnroute hash:net maxelem 65536 | |
| ipset add chnroute 1.0.1.0/24 | |
| ipset add chnroute 1.0.2.0/23 | |
| ipset add chnroute 1.0.8.0/21 | |
| ipset add chnroute 1.0.32.0/19 | |
| ipset add chnroute 1.1.0.0/24 | |
| ipset add chnroute 1.1.2.0/23 | |
| ipset add chnroute 1.1.4.0/22 | |
| ipset add chnroute 1.1.8.0/21 | |
| ipset add chnroute 1.1.16.0/20 |
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-get update && sudo apt-get install git vim vnstat tmux nscd net-tools curl | |
| apt-get update && apt-get install -y apt-transport-https curl | |
| curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
| cat <<EOF >/etc/apt/sources.list.d/kubernetes.list | |
| deb http://apt.kubernetes.io/ kubernetes-xenial main | |
| EOF | |
| apt-get update | |
| apt-get install -y kubelet kubeadm kubectl |
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
| {"sig":"cd0a24b8b57026d181862885376177d589ae8b4486d9d3543137bbabcd6b415fb3adef15a23a235c6eb2a7c0814c09724be6f899e248aaf10f4eaca80eba38a90","msghash":"916a1ab7818dc1c385e8bdbf52f0be31c99c21ad812dc2742e80b47c6dcc56ee"} |
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 | |
| apt-get update | |
| apt-get install curl | |
| curl -fsSL https://get.docker.com/ | sh | |
| curl -fsSL https://get.docker.com/gpg | apt-key add - | |
| # docker-compose | |
| apt-get install python3-setuptools | |
| easy_install3 pip | |
| pip install docker-compose |
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
| gitlab: | |
| image: gitlab/gitlab-ce:latest | |
| volumes: | |
| - $PWD/etc:/etc/gitlab:Z | |
| - $PWD/opt:/var/opt/gitlab:Z | |
| - $PWD/log:/var/log/gitlab:Z | |
| ports: | |
| - "10080:80" | |
| - "10022:22" | |
| - "10443:443" |
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
| version: '2' | |
| services: | |
| redis: | |
| restart: always | |
| image: sameersbn/redis:latest | |
| command: | |
| - --loglevel warning | |
| volumes: | |
| - $PWD/data/redis:/var/lib/redis:Z |
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
| [General] | |
| skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1 | |
| bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
| # dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114 | |
| loglevel = notify | |
| [Proxy] | |
| BJ-All = custom | |
| BJ-HK-Azure = custom | |
| BJ-US-Azure = custom |
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
| <?php | |
| require('mysql.php'); // see https://gist.github.com/paxmanchris/f5d4b94f67a8acd8cefc | |
| $me = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']; | |
| $sso_secret = 'YOUR_SSO_PROVIDER_KEY_HERE'; | |
| $discourse_url = 'http://example.com'; | |
| if(!empty($_GET) and isset($_GET['sso'])){ |
NewerOlder