Thoughts, stories and ideas.

Rails command-line tricks

Kill all screen sessions screen -ls | grep pts | cut -d. -f1 | awk '{print $1}' | xargs kill Kill all running Sidekiqs ps aux | grep '[s]idekiq.*busy]'

Ruby One-Liners

 Ruby on Rails

This is just a collection of quick Ruby tips. 1. Convert array to hash [[:key, :value]].to_h or Hash[[["name","Nick"],["job","coder"]]] 2. Swap hash keys and values

Connecting Ruby on Rails to Salesforce

 Ruby on Rails

Salesforce is getting popular with SME and Enterprise markets and companies would love to integrate their custom-built apps with their Salesforce CRM database. You can synchronize data from your database