Skip to content

Instantly share code, notes, and snippets.

View letusfly85's full-sized avatar
🎯
Focusing

Shunsuke Wada letusfly85

🎯
Focusing
View GitHub Profile
@letusfly85
letusfly85 / gist:a2fd72108acc710710b1ea52f910c9cd
Created November 26, 2018 15:47 — forked from kingbin/gist:9435292
Manually Start/Stop PostgresSQL on Mac
# Stop PostgreSQL from auto starting
sudo launchctl unload -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.3.plist
# Enable PostgreSQL to auto start
sudo launchctl load -w /Library/LaunchDaemons/com.edb.launchd.postgresql-9.3.plist
# Start postgres
$ sudo su postgres
Password:
bash-3.2$ pg_ctl -D /Library/PostgreSQL/9.3/data/ start
@letusfly85
letusfly85 / sample.scala
Last active March 17, 2018 06:25
sample.scala
/***
*
*
* before
*
*/
def createDefinition = Action { implicit request =>
request.body.asJson match {
case Some(json) =>
Json.fromJson[WorkflowDefinitionEntity](json) match {
status = error
appender.console.type = Console
appender.console.name = console
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n
rootLogger.level = info
rootLogger.appenderRef.console.ref = console
http.host: 0.0.0.0
# Uncomment the following lines for a production cluster deployment
#transport.host: 0.0.0.0
#discovery.zen.minimum_master_nodes: 1
#index.analysis.analyzer.default.type: custom
#index.analysis.analyzer.default.tokenizer: kuromoji_tokenizer
version: '2'
services:
elasticsearch:
image: elasticsearch
ports:
- 9200:9200
- 9300:9300
environment: