This file contains hidden or 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
| name: bigbang | |
| root: /var/www/bigbang/releases | |
| pre_window: rvm use 2.0.0@bigbang | |
| tmux_options: -S /tmp/bigbang | |
| windows: | |
| - bigbang: tail -f ../current/log/production.log | |
| - sidekiq: tail -f ../current/log/sidekiq.log | |
| - unicorn: tail -f ../current/log/unicorn.stderr.log | |
| - nginx: tail -f /var/log/nginx/error.log | |
| - console: rails c |
This file contains hidden or 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
| start on runlevel [2] | |
| stop on runlevel [016] | |
| console owner | |
| setuid ubuntu | |
| pre-start exec start_unicorn | |
| post-stop exec kill `cat /var/www/bigbang/current/tmp/pids/unicorn.pid` | |
| respawn |
This file contains hidden or 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
| <? | |
| function print_combo($id) { | |
| $combo = "<select>"; | |
| while( has_sub_field('select_'.$id) ) { | |
| $combo .= "<option value='".the_sub_field('link_externo')."'>"; | |
| $combo .= the_sub_field('texto'); | |
| $combo .= "</option>"; | |
| } | |
| $combo .= "</select>"; | |
| return $combo; |
This file contains hidden or 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
| Type SQL Duration (ms) | |
| Client Load SELECT `clients`.* FROM `clients` WHERE `clients`.`id` = 85 LIMIT 1 148.472 | |
| HistoricBalance Load SELECT `historic_balances`.* FROM `historic_balances` INNER JOIN `funds` ON `funds`.`id` = `historic_balances`.`fund_id` WHERE (date <= '2013-09-30' AND fund_id = 705 AND caution = 0) ORDER BY historic_balances.date desc, historic_balances.id desc 5.111 | |
| HistoricBalance Load SELECT `historic_balances`.* FROM `historic_balances` INNER JOIN `funds` ON `funds`.`id` = `historic_balances`.`fund_id` WHERE `historic_balances`.`account_id` = 237 AND (date <= '2013-09-30' AND fund_id = 705 AND caution = 0) AND (amount > 0 ) ORDER BY historic_balances.date desc, historic_balances.id desc 3.374 | |
| Transaction Load SELECT `transactions`.* FROM `transactions` WHERE (value_date <= '2013-09-30' AND fund_id = 705 AND transactions.caution = 0 AND transactions.status_cd != 3) 3.257 | |
| HistoricBalance Load SELECT `historic_balances`.* FROM `historic_balances` INNER JOIN `funds` ON `funds`.`id` = `historic |
This file contains hidden or 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
| class Empresa | |
| has_one "matriz", class: Empresa | |
| has_one "filial", class: Empresa | |
| end |
This file contains hidden or 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
| def reduce(arr, amount) | |
| sample = [] | |
| ratio = (arr.count / amount).floor | |
| while sample.count < amount | |
| index = sample.count | |
| inf = index * ratio | |
| sup = (index + 1) * ratio - 1.0 | |
| sum = arr[inf..sup].reduce(:+) | |
| sample << sum / sup - inf + 1.0 | |
| end |
This file contains hidden or 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
| Outbound Message | |
| --------------------------- | |
| ID: 1 | |
| Address: https://ws.producao.sistemagalgo:7843/ServicePLCota | |
| Encoding: UTF-8 | |
| Http-Method: POST |
This file contains hidden or 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
| 14:24:56,521 DEBUG PLCotaUI.btnConsumirActionPerformed():329 - Botão consumir acionado | |
| 14:24:56,521 DEBUG PLCotaUI.validateteFields():485 - login=WEBSERVICE.SIMPLIFICPAVARINI | |
| 14:24:56,521 DEBUG Config.saveProps():142 - Salvando as configurações em C:\Users\adriano\.plcota\config.properties | |
| 14:24:56,521 DEBUG Config.saveProps():142 - Salvando as configurações em C:\Users\adriano\.plcota\config.properties | |
| 14:24:56,521 DEBUG PLCotaUI.btnConsumirActionPerformed():344 - dtIni=Thu Aug 08 00:00:00 BRT 2013; dtFin=Wed Aug 14 00:00:00 BRT 2013 | |
| 14:24:56,537 DEBUG PLCotaUI.doInBackground():571 - Cursor Ampulheta | |
| 14:24:56,537 INFO PLCotaUI.doInBackground():585 - Recuperando PL Cota para 1 fundos | |
| 14:24:59,426 DEBUG PLCotaUI.doInBackground():588 - Pasta selecionada: C:\Users\adriano\Desktop | |
| 14:24:59,426 DEBUG Config.addProperty():132 - Incluindo propriedade: xml.last_save.path=C:\Users\adriano\Desktop | |
| 14:24:59,426 DEBUG Config.saveProps():142 - Salvando as configurações em C:\Users\adriano\.plcota\config.properties |
This file contains hidden or 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
| http://u761560.sendgrid.org/wf/click?upn=tDF5W1uBIWLOynnRXM9V4d-2BwPlK8sIQjYqr505GtgIMc5HEsNeblGvFqh49nzuLeArSpMEgf4a9b1d7kNmsTpQ-3D-3D_lCiRXtk4rsq01TOdyw27Slu8GUEtFh-2FOQwDu67Xu9Hbl68uWVIEUtjYLItZ8-2FZ81JZx5QrmhiMKuthJ0KISOqlGwbDQzMvpYsvreN-2F75nnH7AOzT-2B-2BTv8R2MwFqZDqe6seY-2BYMWnHqAOSwi4Q-2BPXoCZkUuKchYdFmwve6O6eP2gn2yfiYJenu0b2u7L6XcMqsAR-2Fz275GXujfinPBmzLZLXGQ-2B4YHH5ijX63-2FId0tP8UAis6oHrH5-2Bf7VfsV2Y6DFvvvWCzWVLhhCeNpwRUHJnGF3gy6Mxmuls56DC0Q2cOfebqnbrsxb1dSm5Y2D0ppFq2-2BC7da216pisSWWh-2F-2FzfYB6mds6PhQjRzgpm7XKmx1-2B2-2BXWNQ-2FcpgJYB4qTOiSx6Wjhi8e-2BY9UJTC1LRlc46zUVOZW0eDXcaiOz0DrKEyZUMHq-2Fgg78Nv27h9NvL-2F9RRIiuPZB7fLvwxce5QKNetyNUYWFnLaKrABVGnQdDbc3vuGlcHGJ29WQdf8q2uKZhoSea3NiHRz-2FrLd6bIX4sEg84U9W2r05-2BvFjD5ED-2BkkzZgQC1GRB91dgkYGywCW-2BY1G2zSiCR46Sksm7dhGEQtB0-2FBJT1i9tdkdNxblvw0z-2BrR7PUUqwhcYt6FT7XBAEEsQUncLsLgRAxUkzk023iCk6NZK7AErLW1AqAN1HInDIXhXrFmR0fDMOSXIHB-2Fj3cBJD8RUK9CM-2FiaQftXVA5mtzWqI17cKdBzanDPvg31NwNJ9IhBPXOWMCi3-2BlhwqNVOGlvYQo4V-2FnZk4M7hR-2B4SudVadprAz9H4Zws9UHlb3X55NtlUflhMqz-2 |
This file contains hidden or 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
| wget errbit.simplificpavarini.com.br:5000 | |
| --2013-04-21 17:28:44-- http://errbit.simplificpavarini.com.br:5000/ | |
| Resolving errbit.simplificpavarini.com.br (errbit.simplificpavarini.com.br)... 127.0.0.1 | |
| Connecting to errbit.simplificpavarini.com.br (errbit.simplificpavarini.com.br)|127.0.0.1|:5000... connected. | |
| HTTP request sent, awaiting response... 302 Found | |
| Location: http://errbit.simplificpavarini.com.br:5000/users/sign_in [following] | |
| --2013-04-21 17:28:45-- http://errbit.simplificpavarini.com.br:5000/users/sign_in | |
| Reusing existing connection to errbit.simplificpavarini.com.br:5000. |