This file contains 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 bash | |
# Run `./gen-custom.sh github.com/myorg/myprovider provider-name version` | |
# e.g.: `./gen-custom.sh github.com/mevansam/terraform-provider-cf cloudfoundry v1.0.0` | |
# This will place a provider-name.json directly in $HOME/.terraform.d/schemas | |
CUR="$(pwd)" | |
out="$CUR/schemas" | |
mkdir -p "$out" |
This file contains 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
<?php | |
/** | |
* Use php curl multi, rolling request url. | |
* | |
* @author liwanghui@dratio.com | |
*/ | |
class CurlRoll | |
{ | |
/** |
This file contains 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
/var/log/app.log { | |
weekly | |
missingok | |
su root root # 切换到某个用户\组 | |
create 0664 root utmp # 指定日志用户以及 模式 | |
rotate 52 | |
compress | |
delaycompress | |
notifempty | |
copytruncate |