This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE VIEW v_clients_requests_loans | |
AS | |
SELECT | |
req.id, | |
req.store_id, | |
req.client_id, | |
IFNULL(clients.initial_total_loan_limit > 0 OR clients.total_loan_limit > 0, 0) AS client_limit, | |
clients.mobile_phone AS client_phone, | |
DATE_ADD(req.created_at, INTERVAL 3 HOUR) AS created_at, | |
DATE_ADD(req.updated_at, INTERVAL 3 HOUR) AS updated_at, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env puma | |
# {{ ansible_managed }} | |
environment ENV['RAILS_ENV'] || 'production' | |
directory "{{ puma_directory }}" | |
rackup "{{ puma_rackup }}" | |
pidfile "{{ puma_pidfile }}" | |
{% for typ,v in puma_binds.iteritems() %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(echo flushall && sleep 1 ) | telnet localhost 6379 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 = :continue | |
101 = :switching_protocols | |
102 = :processing | |
200 = :ok | |
201 = :created | |
202 = :accepted | |
203 = :non_authoritative_information | |
204 = :no_content | |
205 = :reset_content | |
206 = :partial_content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/liquid_i18n_rails.rb | |
module LiquidI18nRails | |
def t(string) | |
I18n.t(string.to_sym) | |
end | |
end | |
# config/initializers/liquid.rb | |
require 'liquid_i18n_rails' | |
Liquid::Template.register_filter LiquidI18nRails |