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 | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def hello_world(): | |
| return 'Hello, Rammus Xu!' |
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 buildx version | |
| mkdir -p ~/.docker/cli-plugins | |
| BUILDX_VERSION="v0.4.2" | |
| wget https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.darwin-amd64 -O ~/.docker/cli-plugins/docker-buildx | |
| chmod a+x ~/.docker/cli-plugins/docker-buildx | |
| docker buildx version |
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
| REPO=rammus/action-demo | |
| FILE=README.md | |
| INPUT_GITHUB_TOKEN= | |
| # https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#get-repository-content | |
| curl \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| -H "Authorization: token $INPUT_GITHUB_TOKEN" \ | |
| "https://api.github.com/repos/${REPO}/contents/${FILE}" |
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
| lscpu | |
| shell: /bin/bash -e {0} | |
| Architecture: x86_64 | |
| CPU op-mode(s): 32-bit, 64-bit | |
| Byte Order: Little Endian | |
| CPU(s): 2 | |
| On-line CPU(s) list: 0,1 | |
| Thread(s) per core: 1 | |
| Core(s) per socket: 2 | |
| Socket(s): 1 |
OlderNewer