Skip to content

Instantly share code, notes, and snippets.

View theharveyz's full-sized avatar
🕶️
NOOP

HarveyZ theharveyz

🕶️
NOOP
View GitHub Profile
@theharveyz
theharveyz / gen-custom.sh
Created September 28, 2018 06:42 — forked from ArthurHlt/gen-custom.sh
Generate json schema for intellij terraform plugin on a community provider
#!/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"
@theharveyz
theharveyz / CurlRoll.php
Created August 16, 2017 06:29 — forked from luxixing/CurlRoll.php
php-curl-multi 使用php curl多进程请求url,抓取页面的类
<?php
/**
* Use php curl multi, rolling request url.
*
* @author liwanghui@dratio.com
*/
class CurlRoll
{
/**
@theharveyz
theharveyz / logrotate.conf
Last active March 6, 2017 18:48 — forked from simsicon/logrotate.conf
Helpful logrotate configuration
/var/log/app.log {
weekly
missingok
su root root # 切换到某个用户\组
create 0664 root utmp # 指定日志用户以及 模式
rotate 52
compress
delaycompress
notifempty
copytruncate