Skip to content

Instantly share code, notes, and snippets.

@zbal
Created January 27, 2014 06:08
Show Gist options
  • Save zbal/8643893 to your computer and use it in GitHub Desktop.
Save zbal/8643893 to your computer and use it in GitHub Desktop.
---
some:
thing: is
awesome:
- that
- is
- an
- array
@zbal
Copy link
Author

zbal commented Jan 27, 2014

{
  "some": {
    "thing": "is",
    "awesome": [
      "that",
      "is",
      "an",
      "array"
    ]
  }
}

@zbal
Copy link
Author

zbal commented Jan 27, 2014

some.csv file:

thing=is
awesome=that
awesome=is
awesome=an
awesome=array

@zbal
Copy link
Author

zbal commented Jan 27, 2014

nginx.yml

---
nginx_domains:
  - domain: example.com
    bind: 0.0.0.0
    port: 80
    aliases: www.example.com www2.example.com
  - domain: example3.com
    bind: 0.0.0.0
    port: 80
    aliases: www.example3.com www2.example3.com

nginx.json

{
  "nginx_domains": [
     {
        "domain": "example.com",
        "aliases": "www.eample.com www2.example.com",
        "bind": "0.0.0.0",
        "port": 80
     },
     {
        "domain": "example3.com",
        "aliases": "www.example3.com www2.example3.com",
        "bind": "0.0.0.0",
        "port": 80
     }
  ]
}

nginx.csv

nginx_domains[0][domain]="example.com"
nginx_domains[0][bind]="0.0.0.0"
nginx_domains[0][port]="80"
nginx_domains[0][aliases]="www.example.com www2.example.com"
nginx_domains[1][domain]="example3.com"
nginx_domains[1][bind]="0.0.0.0"
nginx_domains[1][port]="80"
nginx_domains[1][aliases]="www.example3.com www2.example3.com"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment