- YAML 使用 2 空格+.yml后缀
- Jinja 变量前后需要使用空格 {{ var }}
- YAML 中引用变量时需要用双引号
- 环境变量全大写,其他变量全小写
- 所有变量前需要加上 role name 作为前缀,比如 nginx_xxx
- role 命名使用短横线
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
| 27.150.192.0/21 | |
| 27.150.200.0/22 | |
| 27.150.204.0/24 | |
| 27.150.205.0/24 | |
| 27.150.206.0/23 | |
| 27.150.208.0/21 | |
| 27.150.216.0/22 | |
| 27.150.220.0/23 | |
| 27.150.222.0/24 | |
| 27.150.223.0/24 |
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
| class python27 { | |
| Package { ensure => "installed" } | |
| $apt-base = "/etc/apt/sources.list.d/fkrull-" | |
| Exec { require => Package["python-software-properties"] } | |
| exec { "python-repo" : | |
| command => "/usr/bin/add-apt-repository ppa:fkrull/deadsnakes", | |
| creates => "${apt-base}deadsnakes-lucid.list", |
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
| d-i debian-installer/locale string en_US | |
| d-i debian-installer/language string en | |
| d-i debian-installer/country string US | |
| d-i debian-installer/locale string en_US.UTF-8 | |
| d-i debian-installer/allow_unauthenticated string true | |
| d-i console-setup/ask_detect boolean false | |
| d-i console-setup/layoutcode string us |
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
| 1.0.1.0/24 | |
| 1.0.2.0/23 | |
| 1.0.8.0/21 | |
| 1.0.32.0/19 | |
| 1.1.0.0/24 | |
| 1.1.2.0/23 | |
| 1.1.4.0/22 | |
| 1.1.8.0/21 | |
| 1.1.16.0/20 | |
| 1.1.32.0/19 |
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
| ## Australia 47.44% 23043328 | |
| ## China 100.00% 336902912 | |
| ## Thailand 45.61% 4109824 | |
| ## India 72.12% 27300096 | |
| ## Malaysia 42.59% 2838784 | |
| ## South Korea 65.20% 73268992 | |
| ## Vietnam 73.08% 11535360 | |
| ## Taiwan Province of China 57.18% 20297728 | |
| ## Singapore 30.64% 2177024 | |
| ## New Zealand 29.48% 2017024 |
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/sh | |
| ### BEGIN INIT INFO | |
| # Provides: logstash | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start daemon at boot time | |
| # Description: Enable service provided by daemon. | |
| ### END INIT INFO |
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
| redis = require 'redis' | |
| client = redis.createClient() | |
| SS_PREFIX = 'ss:' | |
| # | |
| # user | |
| # name: shadowsocks 的用户名 | |
| # password: shadowsocks 的密码 | |
| # method: shadowsocks 的加密方法 |
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
| adb shell appops set com.tencent.mm OP_READ_PHONE_STATE ignore | |
| adb shell appops set com.tencent.mm COARSE_LOCATION ignore | |
| adb shell appops set com.tencent.mm FINE_LOCATION ignore | |
| adb shell appops set com.tencent.mm RUN_IN_BACKGROUND ignore |
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
| #!/usr/bin/env ruby | |
| # modified from https://gist.github.com/pbock/3ab260f3862c350e6b5f # | |
| require 'watir-webdriver' | |
| class BurgerBot | |
| def initialize | |
| @attempt_count = 0 |
OlderNewer