Skip to content

Instantly share code, notes, and snippets.

@ggchangan
ggchangan / gist:4bccac745324ca4805ec9d49b928e55d
Created June 14, 2019 07:25 — forked from gsong/gist:6321633
Bash script to generate SSL csr/key/crt
#!/bin/bash
# Usage:
#
# ssl_setup [--self] <name> <csr_config>
#
# This script is used to generate key and CSR for use HTTPS in Nginx.
#
# --self Generate self-signed certificate in addition to key and CSR.
# name Output files will be named as <name>.key and <name>.csr.
@ggchangan
ggchangan / query.json
Created May 13, 2019 10:06 — forked from cb372/query.json
Using the Elasticsearch scroll API
{
"sort": ["_doc"],
"size": 100,
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": {
...
@ggchangan
ggchangan / README-Template.md
Created November 27, 2018 07:21 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@ggchangan
ggchangan / API.md
Created August 12, 2016 02:58 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method: