Skip to content

Instantly share code, notes, and snippets.

View motobrew's full-sized avatar

Fukao Moto motobrew

View GitHub Profile
@motobrew
motobrew / file0.txt
Last active December 26, 2017 02:10
RUNDECKのジョブをAPI経由でオプション指定して実行(Python) ref: https://qiita.com/motobrew/items/db48f73b71b7f6b96f99
import requests
api_token = 'XXXXXXXXXXXXXXX'
base_url = "https://www.example.com:8888"
job_id = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXXX"
url = base_url + "/api/12/job/" + job_id + "/executions"
headers = {'X-Rundeck-Auth-Token': api_token}
# messageという名前のオプションにHELLOを指定する場合
@motobrew
motobrew / unicorn.rb
Created June 9, 2017 08:09
unicorn socket backlog
unicorn_backlog = ENV["UNICORN_BACKLOG"] || 1024
listen /tmp/unicorn.sock, :backlog => Integer(unicorn_backlog)
@motobrew
motobrew / unicorn.rb
Created June 9, 2017 02:06
unicorn worker processes
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 5)