Skip to content

Instantly share code, notes, and snippets.

View beck03076's full-sized avatar

senthil kumar muthamizhan beck03076

View GitHub Profile
{
"first_name": "Vincent",
"last_name": "Parket",
"date_of_birth": "1988-12-22",
"phone_number": "9843903076",
"gender": "male",
"employee_id": "500d0d23",
"external_id": "234235",
"email_address": "vincentd@dacme.com",
"date_of_joining": "2020-12-12",
{
"first_name": "Vincent",
"last_name": "Parket",
"date_of_birth": "1988-12-22",
"phone_number": "9843903076",
"gender": "male",
"employee_id": "500023",
"external_id": "234235",
"email_address": "vincent@acme.com",
"date_of_joining": "2020-12-12",
super_admin@iecabroad.com
12341234
agency_admin@iecabroad.com
12341234
branch_manager@iecabroad.com
12341234
branch_user@iecabroad.com
http://staging.organizor.org/registrations/9312
http://staging.organizor.org/registrations/9313
http://staging.organizor.org/registrations/9314
http://staging.organizor.org/registrations/9315
http://staging.organizor.org/registrations/9316
http://staging.organizor.org/registrations/9317
http://staging.organizor.org/registrations/9318
http://staging.organizor.org/registrations/9319
http://staging.organizor.org/registrations/9320
http://staging.organizor.org/registrations/9356
Week-1:
-------
Initial Setup
Data Setup - Roles
Establish communication
Establish Process
Going Through Use Cases - 1st set
Week-2:
-------
@beck03076
beck03076 / inclusive_exclusive_from_ruby.rb
Created June 5, 2017 08:35
inclusive_exclusive_from_ruby.rb
# show me a tank thats larger than 100000000000 diameter
DIAMETERS = [0, 12.2, 45.7, 76.2, 100000000000].freeze
RADII_TOLERANCE = [12.7, 19.05, 25.4, 31.75].freeze
current_diameter = 76.2
each_cons_index = 0
final_radii_tolerance = nil
DIAMETERS.each_cons(2) do |diameter_window|
if current_diameter >= diameter_window[0] && current_diameter < diameter_window[1]
We used this query to find out the number of pg connections,
select count(*) from pg_stat_activity
We investigated and found out the there were multiple(upto 17) pg connections from 2 sidekiq processes
we have with 40 concurrent threads.
We used this query to find out sidekiq pg connections,
select pid, usename, application_name, state from pg_stat_activity where usename = 'ringmdstaging' and application_name like 'sidekiq%';
[[["sea",[["1446172995_a0n60000000sqcaAAA","Shivaami, Bangalore","https://www.google.com/a/cpanel/shivaami.net/images/logo-custom.gif",["Guidance","Change management","Advanced services","Setup","Technical support"]
,[["12.9846035","77.5968811"]
,"Bangalore, Karnataka","IN"]
,["Partner"]
,"","Shivaami , a top reseller of Google Apps in India. With base of \nmore then 4000 clients, we is in a position to help you with Setup, \nDeployment, Migration \u0026 training of Google Apps. We have dedicated support \nteam and we give you 24 x 7 support. We understand that when it's your \nemail, it has to be critical. Your email support is on top of our priority.",["English"]
,["punit@shivaami.com","+91 80806 21001",["C/o. DBS House,, 26. Cunningham Road","Bangalore, Karnataka"]
,"http://www.shivaami.com","https://plus.google.com/u/0/113054366999358378225/posts",""]
]
,["46866896_a0n60000000srEFAAY","Brio Technologies Private Limited - Chennai","https://www.google.com/a/cpanel/gfw.brio.co.in/images/logo-custom.gif",["Gu
class SearchController
def search_repos
platform = Favorito::Platform.new(:github, { per_page: 10 })
client = Favorito::Client.create(platform)
client.repos('beck03076')
end
end
module Favorito
# ==================== Client ==============
{
"id": 79,
"name": "V Day offer",
"business": {
"id": 22,
"name": "Restaurant Group 1",
"category": {
"id": 19,
"name": "Food & Wine"
},