I hereby claim:
- I am olkeene on github.
- I am olkeene (https://keybase.io/olkeene) on keybase.
- I have a public key ASCoGSrU5U6A0FgX6THhFPAbOAC5r7VvGezXnVJe-cmqkQo
To claim this, I am signing this object:
| # In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
| # variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
| # in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
| # gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
| # Add the following to your shell init to set up gpg-agent automatically for every shell | |
| if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
| source ~/.gnupg/.gpg-agent-info | |
| export GPG_AGENT_INFO | |
| else |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| bundle check || bundle install --jobs 4 --retry 5 | |
| pids=( server.pid realtime_updater.pid ) | |
| for file in "${pids[@]}" | |
| do | |
| path="tmp/pids/$file" | |
| if [ -f $path ]; then | |
| rm $path | |
| fi |
| FROM ruby:2.1-slim | |
| RUN apt-get update -qq && \ | |
| apt-get install -y \ | |
| build-essential git \ | |
| libmysqlclient-dev mysql-client libxslt-dev libxml2-dev \ | |
| curl net-tools --no-install-recommends | |
| ENV NVM_DIR "/root/.nvm" | |
| ENV NVM_VERSION 0.33.0 |
| # .docker/.env | |
| REDIS_HOST=redis | |
| MONGO_HOST=mongo |
| development: &default | |
| adapter: mysql2 | |
| username: <%= ENV.fetch('MYSQL_USER', 'foo') %> | |
| password: <%= ENV.fetch('MYSQL_PASSWORD', 'bar') %> | |
| host: <%= ENV.fetch('MYSQL_HOST', '127.0.0.1') %> | |
| database: app_development | |
| encoding: utf8 | |
| ..... |
| # Travel Policy APIs | |
| - [References](references.md) | |
| - [Read data of a User](references.md/#read-data-of-a-user) | |
| - [Create a new User](references.md/#create-a-new-user) | |
| - [Change a new User](references.md/#change-a-new-user) | |
| # References | |
| ## Read data of a User |
| #!/bin/bash | |
| echo "Waiting for mysql" | |
| until mysql -h"$MYSQL_HOST" -P3306 -u"$MYSQL_ROOT_USER" -p"$MYSQL_ROOT_PASSWORD" -e 'show databases;'; do | |
| >&2 printf "." | |
| sleep 1 | |
| done | |
| echo "Mysql ready" |
| require 'spec_helper' | |
| # Some crufty requires omitted here | |
| RSpec.configure do |config| | |
| # If you're not using ActiveRecord, or you'd prefer not to run each of your | |
| # examples within a transaction, remove the following line or assign false | |
| # instead of true. | |
| config.use_transactional_fixtures = false |