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
| require 'pp' | |
| require 'minitest/autorun' | |
| class Array | |
| def my_flatten(result = []) | |
| self.each do |elem| | |
| if elem.is_a?(Array) | |
| elem.my_flatten(result) | |
| else | |
| result << elem |
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
| Perform cmd "/bin/drbdadm role r1 2>>/dev/null" OK, cmd_rsp=0, reason code:0. | |
| DRBD_Get_Role: [DRBD(1)] role: Primary. | |
| md_get_status: /dev/md1 : status=0, progress=100.000000. | |
| LV_Get_Pool_Id: [LV(-1)] Fail to get Pool ID. | |
| Blk_Dev_Get_Mount_Point: device "/dev/mapper/cachedev1" found, and mount point is "/share/CACHEDEV1_DATA". | |
| Blk_Dev_Get_Mount_Point: device "/dev/md0" found, and mount point is "/share/MD0_DATA". | |
| Perform cmd "/bin/df -k /share/MD0_DATA 2>>/dev/null | /usr/bin/tail -n1 | /bin/awk -F ' ' '{print $(NF-3)}'" OK, cmd_rsp=0, reason code:0. | |
| Perform cmd "/bin/df -k /share/MD0_DATA 2>>/dev/null | /usr/bin/tail -n1 | /bin/awk -F ' ' '{print $(NF-2)}'" OK, cmd_rsp=0, reason code:0. | |
| Volume_Is_Configure: Volume(2):status(0), and "is" configured. | |
| Blk_Dev_Generate_Mount_Point: mount point for "/dev/md0" is "/share/MD0_DATA", is_internal is 1. |
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
| <form accept-charset="UTF-8" action="..." class="fileupload" enctype="multipart/form-data" method="post"> | |
| <input id="id" name="id" type="hidden" value="1"> | |
| <strong class="text-bg">Drag new images here <input id="hotel_image_file" name="hotel_image[file]" type="file" style="display: none;"></strong> | |
| </form> | |
| <div id="order-notice" class="" style="display:none"> | |
| <p>Image order has been updated</p> | |
| </div> | |
| <ul id="image-uploads"></ul> |
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
| [29ace523] Running ~/.rbenv/bin/rbenv exec bundle exec rake db:migrate as deploy@XXXXXX | |
| DEBUG [29ace523] Command: cd /home/deploy/app/releases/20150426121406 && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.1 RAILS_ENV=production ~/.rbenv/bin/rbenv exec bundle exec rake db:migrate ) | |
| DEBUG [29ace523] rake aborted! | |
| DEBUG [29ace523] ActiveRecord::NoDatabaseError: FATAL: role "thmdbm" does not exist |
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
| <style> | |
| .luckyleaderboard { width: 100px; overflow: hidden; border: 0px solid #ccc; background: #ccc;} | |
| ul.luckywinners { list-style-type: none; padding-left:0px;} | |
| ul.luckywinners li { display: inline; padding: 10px; margin-right: 10px; } | |
| ul.luckywinners li span.luckyname, ul.luckywinners li span.luckyvalue { font-weight: bold } | |
| </style> |
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
| Notice: Indirect modification of overloaded property ControllerModuleSdksnippet::$data has no effect in /usr/share/nginx/html/opencart20/admin/controller/module/sdksnippet.php on line 42Notice: Indirect modification of overloaded property ControllerModuleSdksnippet::$data has no effect in /usr/share/nginx/html/opencart20/admin/controller/module/sdksnippet.php on line 44Notice: Indirect modification of overloaded property ControllerModuleSdksnippet::$data has no effect in /usr/share/nginx/html/opencart20/admin/controller/module/sdksnippet.php on line 45Notice: Indirect modification of overloaded property ControllerModuleSdksnippet::$data has no effect in /usr/share/nginx/html/opencart20/admin/controller/module/sdksnippet.php on line 46Notice: Indirect modification of overloaded property ControllerModuleSdksnippet::$data has no effect in /usr/share/nginx/html/opencart20/admin/controller/module/sdksnippet.php on line 47Notice: Indirect modification of overloaded property ControllerModuleSdksnippet::$data has no |
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
| namespace :deploy do | |
| desc "Precompile assets locally and then rsync to web servers" | |
| task :compile_assets do | |
| on roles(:web) do | |
| rsync_host = host.to_s | |
| run_locally do | |
| with rails_env: :production do ## Set your env accordingly. | |
| execute :bundle, "exec rake assets:precompile" | |
| 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
| # Load DSL and Setup Up Stages | |
| require 'capistrano/setup' | |
| # Includes default deployment tasks | |
| require 'capistrano/deploy' | |
| require 'capistrano/rvm' | |
| set :rvm_type, :user | |
| set :rvm_ruby_version, '2.0.0-p247' |
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
| upstream rore { | |
| server unix:/tmp/unicorn.rore.sock fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| server_name localhost <redacted>.com www.<redacted>.com; | |
| rewrite ^ https://$server_name$request_uri?; | |
| } |
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
| OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed): | |
| /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:586:in 'connect' | |
| /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:586:in 'connect' | |
| /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:553:in 'do_start' | |
| /usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/net/http.rb:542:in 'start' | |
| /usr/local/rvm/gems/ree-1.8.7-2011.03@akamusic/gems/right_http_connection-1.3.0/lib/net_fix.rb:129:in 'request' | |
| faraday (0.6.1) lib/faraday/adapter/net_http.rb:51:in 'call' | |
| faraday (0.6.1) lib/faraday/request.rb:88:in 'run' | |
| faraday (0.6.1) lib/faraday/request.rb:28:in 'run' | |
| faraday (0.6.1) lib/faraday/connection.rb:170:in 'run_request' |