Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: CjulERsDeqhhjSme66ECg
| #!/bin/sh | |
| # | |
| # init.d script for single or multiple unicorn installations. Expects at least one .conf | |
| # file in /etc/unicorn | |
| # | |
| # Modified by [email protected] http://github.com/jaygooby | |
| # based on http://gist.github.com/308216 by http://github.com/mguterl | |
| # | |
| ## A sample /etc/unicorn/my_app.conf | |
| ## |
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: CjulERsDeqhhjSme66ECg
| require "mac-event-monitor" | |
| monitor = Mac::EventMonitor::Monitor.new | |
| monitor.add_listener(:key_down) do |event| | |
| system("afplay #{ENV['HOME']}/bin/sounds/#{event.keycode % 14 + 1}.wav &") | |
| end | |
| monitor.add_listener(:mouse_move) do |event| | |
| system("afplay #{ENV['HOME']}/bin/sounds/#{rand(14) + 1}.wav &") | |
| end | |
| monitor.run |
| alias be="bundle exec" | |
| alias bi="bundle install" | |
| alias bl="bundle list" | |
| alias bu="bundle update" | |
| alias bp="bundle package" | |
| # The following is based on https://github.com/gma/bundler-exec | |
| bundled_commands=(cap capify cucumber guard heroku rackup rails rake rspec ruby shotgun spec spork thin unicorn unicorn_rails) |
Ubuntu+Nginx+Unicorn+Rails+Capistrano+Resque+God — Gist
この記事から設定を例として抽出
定義更新する
| #!/bin/bash | |
| . /opt/elasticbeanstalk/hooks/common.sh | |
| # Load ElasticBeanstalk environment variables | |
| touch /tmp/env.sh | |
| chmod 600 /tmp/env.sh | |
| jq .docker.env[] $EB_CONFIG_FILE | tr -d \" > /tmp/env.sh |