Skip to content

Instantly share code, notes, and snippets.

@tensionHuang
tensionHuang / docker-compose.yml
Created August 5, 2020 11:09
elastic-search docker-compose
version: "3.8"
services:
elasticsearch:
image: elasticsearch:7.8.1
ports:
- "9200:9200"
- "9300:9300"
environment:
discovery.type: "single-node"
@tensionHuang
tensionHuang / run-cassandra.sh
Created July 23, 2020 15:13
run-cassandra.sh
#!bin/bash
# docker pull cassandra
docker pull cassandra:latest
######################
# docker-compose.yml #
######################
# version: "3.8"
# services:
#
@tensionHuang
tensionHuang / genkey.sh
Last active March 11, 2016 09:08 — forked from xcooper/genkey.sh
Generate private key, certification request, optional PEM files at once
#!/bin/sh
echo "edit this file before you execute it!!"
echo "make sure keytool and openssl commands are in PATH"
read -p "Contiune?" ANS
read -p "give me CN(CommonName, EX:www.xxx.com.tw): " CN
read -p "give me OU(OrganizationalUnit, EX:Information Center): " OU
read -p "give me O(Organization, EX: FBI): " O
read -p "give me L(Location, EX:Taipei): " L
read -p "give me ST(StateOrProvinceName, EX:Taipei): " ST
read -p "give me C(Country,EX:TW): " C