Skip to content

Instantly share code, notes, and snippets.

View sumitngupta's full-sized avatar

Sumit Gupta sumitngupta

View GitHub Profile

System

Our systems run on Heroku which sits on top of Amazon AWS. All systems are located in the United States availability zones. Application logs are stripped of sensitive data, collected by LogEntries, and stored for fourteen days.

Escalation & Reporting

Email support@doubleloop.app, engineering@doubleloop.app, or use the Slack channel #it_support to alert the full team of the issue using the Incident Intake Report Format template. The Response Team will add an action plan to the original intake report. The full Incident Report should contain the following:

Incident Intake Report

  • Name/Contact Person:
  • Date of Incident/First noticed:
🚨 Build failed.
@parcel/packager-js: node_modules/@chakra-ui/styled-system/dist/esm/utils/index.js does not export 'ResponsiveValue'
/Users/sumit/projects/double_loop/node_modules/@chakra-ui/styled-system/dist/esm/index.js:8:10
7 | export * from "./system";
> 8 | export { ResponsiveValue } from "./utils";
> | ^^^^^^^^^^^^^^^
9 | //# sourceMappingURL=index.js.map
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@sumitngupta
sumitngupta / templatechanges.md
Last active January 26, 2019 19:06
Tracking all the changes we're making
  • Readme

  • Ruby Gems

  • Application.rb configs

  • GraphQL gem

NEED TO ADD

  • Git repo initialization
  • Heroku setup
# DEPRECATED: USE https://github.com/sumitngupta/rails-template
# Rails Template for new applications
# This should get the developer all the way to the best logical point of generating "Business Logic".
# (MVP) Target start to finish time is 30 minutes.
# This is an opinionated rails template designed to get from zero to sane quick-start application
# with Production-worth characteristics. This means that it should not require a lot of manual steps.

WRITING A GOOD BUG REPORT

  • Summary
  • Description
  • Steps to Reproduce
  • Actual Results
  • Expected Results
  • Reduced Test Case
  • Version, Platform and OS
  • Crash data and/or Screenshot
{
"meal"=>{
"id"=>"3977E8CF-B601-464E-852D-7B5F10812ABA",
"meal_type"=>"Lunch",
"consumed_at"=>1393285535.483584,
"meal_foods_attributes"=>[
{
"id"=>"208BDA4A-3FC2-4A9C-8D77-A4B040FB964A",
"colors"=>{"green"=>3, "yellow"=>0, "red"=>0},
"food_id"=>"344ac4992f213df4c1fb5ef39e1b8972",
{
"foods": [
{
// food here
},
{
//fdsafsa
}
],
namespace :quotes do
desc 'Import data from the TED API'
task :import_data => :environment do
print 'Sucking in quotes...'
# Hit the Quote model
still_has_data = true
page = 0
page_size = 250
namespace :quotes do
desc 'Import data from the TED API'
task :import_data => :environment do
print 'Sucking in quotes...'
# Hit the Quote model
still_has_data = true
page = 0
page_size = 250
namespace :quotes do
desc 'Import data from the Ted API'
task :import_data => :environment do
# here is where you put the code to hit your Quote model.
still_has_data = true
page = 0
while still_has_data do
Quote.save_data_from_api(do something with the page variable to move the offset here)