See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| # -*- coding: utf-8 -*- | |
| """ | |
| Generate a file tree table of contents for a directory of markdown files | |
| run from command line: | |
| $ python md_file_tree.py | |
| will generate a markdown index of all markdown files in the current working | |
| directory and its sub folders and insert it into a file `index.md`. |
| #!/usr/bin/env python3 | |
| # Dependency: pip3 install twitter | |
| import twitter | |
| # Go to http://apps.twitter.com/, create an app, and fill in these values: | |
| consumer_key = 'www' | |
| consumer_secret = 'xxx' | |
| access_token = 'yyy' | |
| access_token_secret = 'zzz' |
| ^+v:: ; paste text and emulate typing (CTRL+SHIFT+V) | |
| AutoTrim,On | |
| string = %clipboard% | |
| Gosub,ONLYTYPINGCHARS | |
| StringSplit, charArray, string | |
| Loop %charArray0% | |
| { | |
| this_char := charArray%a_index% | |
| Send {Text}%this_char% | |
| Random, typeSlow, 1, 3 |
| #deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted | |
| # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
| # newer versions of the distribution. | |
| deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted | |
| # deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted | |
| ## Major bug fix updates produced after the final release of the | |
| ## distribution. | |
| deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start| VARIABLE | VALUE |
|---|---|
| The email address associated with your Cloudflare account. | |
| KEY | The global API key associated with your Cloudflare account. |
| DOMAIN | The name of the domain to create a zone record for. |
| JUMP_START | If true, automatically attempts to fetch existing DNS records when creating a domain’s zone record |
| ZONE_ID | The unique ID of the domain’s zone record. Assigned by Cloudflare. Required when managing an existing zone record and its DNS records. |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Quick guide on how to setup git signing. Information is aggregated from following sources: