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
<meta name="twitter:card" content="summary"> | |
<meta name="twitter:site" content="@pazienti"> | |
<meta name="twitter:title" content="Cos'è l'esame del carico glicemico o curva glicemica?"> | |
<meta name="twitter:description" content="Cos'è l'esame del carico glicemico o curva glicemica?"> | |
<meta name="twitter:creator" content="@pazienti"> |
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
Home page | |
<meta name="twitter:card" content="summary"> | |
<meta name="twitter:site" content="@pazienti"> | |
<meta name="twitter:title" content="Pazienti.it - Mai stati meglio"> | |
<meta name="twitter:description" content="Trova un medico e prenota una visita. Invia una domanda allo specialista, oppure consulta subito migliaia di contenuti di salute"> | |
<meta name="twitter:creator" content="@pazienti"> | |
/contenuti page |
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
Copy directory to remote server from remote server | |
scp -r sourcedir/ [email protected]:/dest/dir/ | |
scp -i /home/barek/Dropbox/clients/Ongoing_Clients/instaprize/rafflehunter.pem [email protected]:/home/ubuntu/rafflehunter_production.dump.gz /home/barek/Dropbox/clients/Ongoing_Clients/instaprize/ | |
Run a scheduled rake task(lets say update sphinx indexing on every 30 min periodically) on Lunux crontab: | |
# find where is your rake(which rake) | |
#m h dom mon dow user command | |
*/30 * * * * root /bin/bash -l -c 'searchd --stop -c /var/rails/project/current/config sudo dd if=/dev/zero of=/swapfile bs=1024 count=256k sudo dd if=/dev/zero of=/swapfile bs=1024 count=256k sudo dd if=/dev/zero of=/swapfile bs=1024 count=256k/production.sphinx.conf && cd /var/rails/project/current && RAILS_ENV=production /usr/local/bin/rake ts:rebuild && chmod -R 777 tmp/' |
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
CoursesController: | |
def index | |
@remote_ip = request.remote_ip | |
if params[:query].present? | |
@courses = Course.sphinx_search(params) | |
elsif params[:this_week].present? | |
@courses = Course.this_week.paginate(:page => params[:page], :per_page => 15) | |
elsif params[:this_month].present? | |
@courses = Course.this_month.paginate(:page => params[:page], :per_page => 15) | |
elsif params[:upcoming].present? |
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
"OIT",513099,1,110202,1,�1.69,�0.00,0,�0.31,�0.00,1,290,12,2,11026,0,0,0,0,2 | |
"OIT",513099,2,110202,1,�1.69,�0.00,0,�0.31,�0.00,1,290,12,2,11026,0,0,0,0,2 | |
"OIT",513099,3,110202,1,�1.69,�0.00,0,�0.31,�0.00,1,290,12,2,11026,0,0,0,0,2 | |
"OIT",513100,1,110007,1,�13.00,�0.00,0,�0.00,�0.00,0,290,10,2,10014,0,0,0,0,2 | |
"OIT",513100,2,110007,1,�13.00,�0.00,0,�0.00,�0.00,0,290,10,2,10014,0,0,0,0,2 | |
"OIT",513100,3,110028,1,�14.00,�0.00,0,�0.00,�0.00,0,290,10,2,10014,0,0,0,0,2 | |
"OIT",513100,4,110038,1,�18.00,�0.00,0,�0.00,�0.00,0,290,10,2,10014,0,0,0,0,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
Started POST "/email_processor" for 127.0.0.1 at 2014-01-06 16:24:56 +0600 | |
Processing by Griddler::EmailsController#create as JSON | |
Parameters: {"headers"=>"Received: by 127.0.0.1 with SMTP...", "to"=>"thoughtbot <[email protected]>", "from"=>"John Doe <[email protected]>", "subject"=>"Hello there", "text"=>"hola hola hola", "html"=>"<p>this is an email message</p>", "SPF"=>"pass", "email"=>{"headers"=>"Received: by 127.0.0.1 with SMTP...", "to"=>"thoughtbot <[email protected]>", "from"=>"John Doe <[email protected]>", "subject"=>"Hello there", "text"=>"hola hola hola", "html"=>"<p>this is an email message</p>", "SPF"=>"pass"}} | |
(0.1ms) BEGIN | |
SQL (110.5ms) INSERT INTO `incoming_emails` (`body`, `created_at`, `from`, `status`, `subject`, `updated_at`) VALUES ('hola hola hola', '2014-01-06 10:24:56', '[email protected]', 'PENDING', 'Hello there', '2014-01-06 10:24:56') | |
(3.0ms) COMMIT | |
(0.2ms) BEGIN | |
(0.2ms) COMMIT | |
Completed 200 OK in 226ms (ActiveRecord: 129.3ms) |
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
I, [2014-03-13T20:57:38.209767 #12920] INFO -- : Not reporting to Code Climate because ENV['CODECLIMATE_REPO_TOKEN'] is not set. | |
"NoMethodError at /request_orders/2/company_fields\n=================================================\n\n> undefined method `model_name' for NilClass:Class\n\napp/views/request_orders/company_fields.html.haml, line 3\n---------------------------------------------------------\n\n``` ruby\n 1 What name do you want for your company?\n 2 \n> 3 = form_for @request_order do |f|\n 4 - @company_fields.each do |field|\n 5 - instance_value = @request_order.company.get_field_instace_with_name(field.master_field.field_name)\n 6 = label_tag \"field_\#{field.master_field.field_name}\", field.master_field.name\n 7 = field.master_field.display(instance_value, { name: \"request_order[company][\#{field.master_field.field_name}]\"})\n 8 \n```\n\nApp backtrace\n-------------\n\n - app/views/request_orders/company_fields.html.haml:3:in `_app_views_re |
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
["/home/barek/.rvm/gems/ruby-2.0.0-p247/gems/quickbooks-ruby-0.1.1/lib/quickbooks/service/base_service.rb:255:in `parse_and_raise_exception'", "/home/barek/.rvm/gems/ruby-2.0.0-p247/gems/quickbooks-ruby-0.1.1/lib/quickbooks/service/base_service.rb:240:in `check_response'", "/home/barek/.rvm/gems/ruby-2.0.0-p247/gems/quickbooks-ruby-0.1.1/lib/quickbooks/service/base_service.rb:211:in `do_http'", "/home/barek/.rvm/gems/ruby-2.0.0-p247/gems/quickbooks-ruby-0.1.1/lib/quickbooks/service/base_service.rb:180:in `do_http_get'", "/home/barek/.rvm/gems/ruby-2.0.0-p247/gems/quickbooks-ruby-0.1.1/lib/quickbooks/service/base_service.rb:79:in `fetch_collection'", "/home/barek/.rvm/gems/ruby-2.0.0-p247/gems/quickbooks-ruby-0.1.1/lib/quickbooks/service/service_crud.rb:6:in `query'", "/home/barek/projects/easygiant/lib/quickbooks_client.rb:128:in `find_entry_by_email'", "/home/barek/projects/easygiant/lib/quickbooks_client.rb:138:in `find_or_create_customer'", "/home/barek/projects/easygiant/lib/quickbooks_client.rb:25:in `cr |
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 confirm | |
@request_order = RequestOrder.find(params[:id]) | |
if current_user | |
begin | |
invoice = @quickbooks_client.create_invoice(@request_order.total_amount, @request_order.package.name) | |
@request_order.update_attributes({ | |
step: 'dashboard', | |
redirect_after_login_url: dashboard_request_order_url(@request_order), | |
invoice_id: invoice.id | |
}) |
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
devise, sidekiq, resque, globalize3,jbuilder, state_machine, thinking-sphinx,active_admin, redis, | |
friendly_id,roo,cancan,ransack, meta_search, activerecord-sqlserver-adapter, ar-octopus, | |
acts_as_follower,atcs_as_taggable,geocoder,simple_form,rable, better_errors,spreadsheet, | |
puma, letter_opener, elastic_search_engine, algoliasearch-rails | |
whenever, rufus_scheduler, new_relic, capistrano, unicorn, exception_notification | |
will_paginate, kaminari | |
paperclip,carrierwave, attachment_fu, aws-s3,aws-ses, asset_sync |