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
| /etc/systemd/system/consul.service | |
| [Unit] | |
| Description=Consul service discovery agent | |
| Requires=network-online.target | |
| After=network-online.target | |
| [Service] | |
| EnvironmentFile=-/etc/sysconfig/consul | |
| Restart=on-failure |
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
| /etc/salt/master.d/api.conf | |
| rest_cherrypy: | |
| port: 8000 | |
| ssl_crt: /etc/pki/tls/certs/localhost.crt | |
| ssl_key: /etc/pki/tls/certs/localhost.key | |
| /etc/salt/master.d/auth.conf | |
| external_auth: | |
| pam: |
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 flask import Flask, jsonify, render_template | |
| app = Flask(__name__) | |
| @app.route("/") | |
| def index(): | |
| return render_template('index.html') | |
| @app.route("/user-data") |
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 docker run --detach \ | |
| --hostname hostname \ | |
| --publish 443:443 --publish 80:80 --publish 2222:22 \ | |
| --name gitlab \ | |
| --volume /data/gitlab/config:/etc/gitlab \ | |
| --volume /data/gitlab/logs:/var/log/gitlab \ | |
| --volume /data/gitlab/data:/var/opt/gitlab \ | |
| gitlab/gitlab-ce:latest |
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 KUBECONFIG=~/.kube/a:~/.kube/b | |
| kubectl config view --flatten |
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
| curl -s 'http://domain.com/api/graphql' -H 'Content-Type: application/json; charset=utf-8' --data-binary \ | |
| $'{"variables": | |
| {"duration": {"start":"2019-05-28","end":"2019-05-28","step":"DAY"}}, | |
| "query":" | |
| query Dashboard($duration: Duration\u21) { | |
| getGlobalBrief(duration: $duration) {numOfService numOfEndpoint numOfDatabase numOfCache numOfMQ } | |
| } | |
| "}' --compressed | jq . |
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
| yum install dropbear -y | |
| rm -rf /etc/dropbear/ | |
| mkdir /etc/dropbear/ | |
| dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key | |
| dropbear -p 8080 |
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 LDFLAGS="-L/usr/local/opt/sqlite/lib" | |
| export CPPFLAGS="-I/usr/local/opt/sqlite/include" |
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 run \ | |
| --name smokeping \ | |
| -p 8888:80 \ | |
| -v /data/smokeping/data:/data \ | |
| -v /data/smokeping/config:/config \ | |
| -e TZ=Asia/Shanghai \ | |
| -d linuxserver/smokeping |
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 alpine | |
| COPY requirements.txt / | |
| RUN apk update && apk add gcc cmake gdb python py2-pip cython-dev build-base openblas-dev --no-cache && \ | |
| ln -s /usr/include/locale.h /usr/include/xlocale.h && \ | |
| pip install -r requirements.txt --no-cache-dir | |
| numpy == 1.11.2 | |
| pandas == 0.19.0 | |
| scipy == 0.18.1 |
NewerOlder