- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line
- When only changing documentation, include
[ci skip]in the commit title - Consider starting the commit message with an applicable emoji
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
| $ VBoxManage list usbhost | |
| Host USB Devices: | |
| ... | |
| UUID: 248ee848-3d9e-47cc-96d7-779e54946e39 | |
| VendorId: 0x0bda (0BDA) | |
| ProductId: 0x0169 (0169) | |
| Revision: 97.35 (9735) | |
| Port: 1 |
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 debian:stretch | |
| ENV LC_ALL en_US.UTF-8 | |
| ENV LANG en_US.UTF-8 | |
| RUN apt-get update && apt-get install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gconf2 \ |
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
| package math | |
| type A struct { | |
| FieldA1 int32 | |
| FieldA2 int32 | |
| } | |
| func (this A) MarshalJSON() ([]byte, error) { | |
| m := make(map[string]interface{}, 3) | |
| m["FieldA1"] = this.FieldA1 |
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/bash | |
| # | |
| # 1. create a EC2 instance with public IP | |
| # 2. create a A RR in route53 pointing your.domain.com to the public IP | |
| # 3. make sure HTTP/HTTPS ports(80 443) are public to all in security group of this EC2 instance | |
| # 4. make sure docker daemon is running in this EC2 instance | |
| # 5. run this script ! | |
| # 6. keys/cert will be generated under /root/letsencrypt/etc/live/ | |
| mkdir -p /root/letsencrypt/log /root/letsencrypt/lib /root/letsencrypt/etc |
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
| package main | |
| import ( | |
| "cloud.google.com/go/storage" | |
| "context" | |
| "log" | |
| ) | |
| const ( | |
| projectID = "your-project-id" // FILL IN WITH YOURS |
OlderNewer