Skip to content

Instantly share code, notes, and snippets.

View shyammohankanojia's full-sized avatar
💭
RazorOps.com

shyam mohan kanojia shyammohankanojia

💭
RazorOps.com
View GitHub Profile
This file has been truncated, but you can view the full file.
heroku_id" = 58
[cp-77fb8dc97-gk9wj] fetch endpoint for BOOKING_INFORMATIONS__C
[cp-77fb8dc97-gk9wj] I, [2018-09-07T17:27:39.967911 #7] INFO -- : POST https://na68.salesforce.com/services/apexrest/InvestorForm ...
[cp-77fb8dc97-gk9wj] I, [2018-09-07T17:27:39.967947 #7] INFO -- : SENDING TO SFDC:
[cp-77fb8dc97-gk9wj] {"fields":{"ownerid":null,"isdeleted":null,"name":null,"currencyisocode":null,"recordtypeid":"0121B000001lsXa","createddate":null,"createdbyid":null,"lastmodifieddate":null,"lastmodifiedbyid":null,"systemmodstamp":null,"lastactivitydate":null,"duration__c":null,"visa_history__c":null,"any_previous_rejections__c":null,"reason_of_rejection__c":null,"departure_city__c":null,"departure_date_period__c":null,"departure_stops__c":null,"flight_time_preference__c":null,"flight_preference__c":null,"going_to__c":null,"airport_preference__c":null,"returning_date_period__c":null,"return_stops__c":null,"class_preference__c":null,"seat_preference__c":null,"meal_preference__c":null,"adults__c":null,"no_of_pers
[cp-559f5c8bcb-hl5kc] I, [2018-06-14T13:53:24.362939 #8] INFO -- : (0.001723s) SELECT * FROM "booking_informations__c" WHERE "heroku_id" = 6
[cp-559f5c8bcb-hl5kc] fetch endpoint for BOOKING_INFORMATIONS__C
[cp-559f5c8bcb-hl5kc] I, [2018-06-14T13:53:24.365257 #8] INFO -- : POST https://cs60.salesforce.com/services/apexrest/InvestorForm ...
[cp-559f5c8bcb-hl5kc] I, [2018-06-14T13:53:24.365298 #8] INFO -- : SENDING TO SFDC:
[cp-559f5c8bcb-hl5kc] {"fields":{"ownerid":"0053C000000ptPiQAI","isdeleted":false,"name":"BI-0000000792","currencyisocode":"INR","recordtypeid":"012a0000001ZLpKAAW","createddate":"2018-06-14T13:45:45.000+05:30","createdbyid":"0053C000000ptPiQAI","lastmodifieddate":"2018-06-14T13:45:45.000+05:30","lastmodifiedbyid":"0053C000000ptPiQAI","systemmodstamp":"2018-06-14T13:45:45.000+05:30","lastactivitydate":null,"duration__c":null,"visa_history__c":null,"any_previous_rejections__c":null,"reason_of_rejection__c":null,"departure_city__c":null,"departure_date_period__c":null,"departure_stops__c":n
About to send data to SFDC at https://na19.salesforce.com/services/apexrest/migrateFormAPI ...
2018-01-30T13:16:37.354955+00:00 app[web.1]: <result>
2018-01-30T13:16:37.354961+00:00 app[web.1]: <total_prospects>1</total_prospects>
2018-01-30T13:16:37.354963+00:00 app[web.1]: <prospect>
2018-01-30T13:16:37.354965+00:00 app[web.1]: <email>merlinedward@yahoo.com</email>
2018-01-30T13:16:37.354967+00:00 app[web.1]: <IC_mailers>true</IC_mailers>
2018-01-30T13:16:37.354969+00:00 app[web.1]: <Migrate_Form_Filled>true</Migrate_Form_Filled>
2018-01-30T13:16:37.354971+00:00 app[web.1]: <salutation>Mr.</salutation>
2018-01-30T13:16:37.354972+00:00 app[web.1]: <First_Name>Merlin</First_Name>
2018-01-30T13:16:37.354974+00:00 app[web.1]: <Middle_Name>Edward Kepa</Middle_Name>
"Email teena@y-axis.com - UserToken A4LDMqmaF3Ak0qxZQhWRwQ"
About to send data to SFDC at https://cs60.salesforce.com/services/apexrest/UpdateAuthToken ...
<result>
<total_prospects>1</total_prospects>
<prospect>
Request
===============================================================================================
<Request xmlns="http://www.thermeon.com/webXG/xml/webxml/" referenceNumber="MOL20170713063231_0623872" version="2.2500">
  <ResRates>
    <Pickup locationCode="KEF50" dateTime="2017-09-27T23:00:00"></Pickup>
    <Return locationCode="KEF50" dateTime="2017-10-08T23:00:00"></Return>
    <Class>IFAR</Class>
    <CorpRateID>CTR-NET001</CorpRateID>
    <EstimateType>3</EstimateType>
Request
===============================================================================================
<Request xmlns="http://www.thermeon.com/webXG/xml/webxml/" referenceNumber="BER20170710114922_0008592" version="2.2500">
  <ResRates>
    <Pickup locationCode="ORX51" dateTime="2017-10-31T14:40:00"></Pickup>
    <Return locationCode="ORX51" dateTime="10000-01-01T00:00:00"></Return>
    <CorpRateID>CTR-NET003</CorpRateID>
    <EstimateType>3</EstimateType>
  </ResRates>
@shyammohankanojia
shyammohankanojia / gist:767187ce2352e51addfa8e364b1f06b8
Last active July 11, 2017 08:13
Quick-Start-With-Argo-and-tugboat-notes
Follow this link
https://gist.github.com/Drunlade/7f3691920e2f02d490723ec6305d9b08
Follow following steps Once you get Argo code
Install Python
> brew install python
Install Snappy
> brew install snappy

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.

#config/initializers/carrierwave.rb
CarrierWave.configure do |config|
if Rails.env.production? or Rails.env.development?
config.storage :cloud_files
config.cloud_files_username = "your_username"
config.cloud_files_api_key = "your_key"
config.cloud_files_container = "test"
config.cloud_files_cdn_host = "c0012345.cdnn.cloudfiles.rackspacecloud.com"
def store_dir
require "prawn"
Prawn::Document.generate("report.pdf") do
10.times do
start_new_page
end
repeat :all do
move_down 50