NOTE: these instructions have been genericised from a real example, and so your mileage may vary.
I first create a provider.tf file.
terraform {
required_providers {
fastly = {
source = "fastly/fastly"
version = "0.28.2"NOTE: these instructions have been genericised from a real example, and so your mileage may vary.
I first create a provider.tf file.
terraform {
required_providers {
fastly = {
source = "fastly/fastly"
version = "0.28.2"| # | |
| # For sending metric value to zabbix server. | |
| # | |
| # You must create item as "zabbix trapper" on server. | |
| # Because the server must be connected to agent:10050, if it is selected "zabbix agent". | |
| # | |
| # Usage: | |
| # from modules.ZabbixSender import ZabbixSender | |
| # ZABBIX_HOST = "zabbix.example.com" | |
| # ZABBIX_PORT = 10051 |
| ## convert HTML POST data or HTTP GET query string to JSON | |
| ## get the raw post data from the AWS built-in variable and give it a nicer name | |
| #if ($context.httpMethod == "POST") | |
| #set($rawAPIData = $input.path('$')) | |
| #elseif ($context.httpMethod == "GET") | |
| #set($rawAPIData = $input.params().querystring) | |
| #set($rawAPIData = $rawAPIData.toString()) | |
| #set($rawAPIDataLength = $rawAPIData.length() - 1) | |
| #set($rawAPIData = $rawAPIData.substring(1, $rawAPIDataLength)) |
| from jinja2.utils import soft_unicode | |
| def merge_dicts(value, dict1): | |
| # return a merged dict | |
| result = {} | |
| result.update(value) | |
| result.update(dict1) | |
| return result | |
| class FilterModule(object): |
SQL2
All nodes with a specific name
SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"All pages below content path
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].