Table of Contents
Syntax: cat <filename> | jq -c '.[] | select( .<key> | contains("<value>"))'
Example: To get json record having _id equal 611
cat my.json | jq -c '.[] | select( ._id | contains(611))'
Remember: if JSON value has no double quotes (eg. for numeric) to do not supply in filter i.e. in contains(611)
def loadResource(filename: String) = { | |
val source = scala.io.Source.fromURL(getClass.getResource(filename)) | |
try source.mkString finally source.close() | |
} |
# -*- coding: utf-8 -*- | |
from sqlalchemy import create_engine, func | |
from sqlalchemy import Table, Column, Integer, String, DateTime, MetaData, ForeignKey | |
from sqlalchemy.pool import NullPool | |
from sqlalchemy.orm import mapper, sessionmaker, relationship | |
params = {'user': 'admin', | |
'password': 'password', | |
'host': 'localhost', |
#!/usr/bin/env python3 | |
from argparse import ArgumentParser | |
from urllib.parse import urlparse | |
from scrapy.crawler import CrawlerProcess | |
from scrapy.spiders import CrawlSpider, Rule | |
from scrapy.linkextractors import LinkExtractor | |
parser = ArgumentParser() | |
parser.add_argument('-d', '--domain') |
Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.
This is just a picture of this link from March 2, 2019
Originally, I had included some other solution
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
version: 2 | |
jobs: | |
validate_terraform: | |
docker: | |
- image: hashicorp/terraform | |
steps: | |
- checkout | |
- run: | |
name: Validate Terraform Formatting |
MIT License
Copyright (c) 2018 Bailey Parker
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: