Skip to content

Instantly share code, notes, and snippets.

Rodrigo Cisternas Albornoz rodcisal

Block or report user

Report or block rodcisal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rodcisal
rodcisal / gist:23e6571216f44490d7b95522c56f838e
Created Mar 12, 2018
Error reviewing logs when Ceci and Adrian couldn't sign in
View gist:23e6571216f44490d7b95522c56f838e
App 466 stdout: ==== Manual Trigger: Elasticsearch::Transport::Transport::Errors::NotFound: [404] {"error":{"root_cause":[{"type":"document_missing_exception","reason":"[listing][1775935]: document missing","index_uuid":"0mL06KnwT9KkbhFAbtmjGw","shard":"0","index":"crm-assistant_application_production_listings"}],"type":"document_missing_exception","reason":"[listing][1775935]: document missing","index_uuid":"0mL06KnwT9KkbhFAbtmjGw","shard":"0","index":"crm-assistant_application_production_listings"},"status":404}
App 466 stdout: Backtrace:
App 466 stdout: /usr/local/rvm/gems/ruby-2.4.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/base.rb:202:in `__raise_transport_error'
App 466 stdout: /usr/local/rvm/gems/ruby-2.4.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/base.rb:319:in `perform_request'
App 466 stdout: /usr/local/rvm/gems/ruby-2.4.0/gems/elasticsearch-transport-5.0.4/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_reques
View gist:6c36f6e4c6277b4ad62ef086fc06f615
Started POST "/graphql" for 172.19.0.7 at 2018-01-19 00:37:49 +0000
Cannot render console from 172.18.0.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by GraphqlController#execute as */*
Parameters: {"query"=>"mutation createFavorite($wishlist_id: ID!, $listing_id: ID!) {\n createFavorite(wishlist_id: $wishlist_id, listing_id: $listing_id) {\n listing_id\n id\n errors\n wishlist_id\n __typename\n }\n}\n", "variables"=>{"wishlist_id"=>"12", "listing_id"=>"60175"}, "operationName"=>"createFavorite", "graphql"=>{"query"=>"mutation createFavorite($wishlist_id: ID!, $listing_id: ID!) {\n createFavorite(wishlist_id: $wishlist_id, listing_id: $listing_id) {\n listing_id\n id\n errors\n wishlist_id\n __typename\n }\n}\n", "variables"=>{"wishlist_id"=>"12", "listing_id"=>"60175"}, "operationName"=>"createFavorite"}}
HTTP Origin header (http://localhost:3001) didn't match request.base_url (http://crm-assistant.dev.propertysimple.com)
User Load (0.3ms) SE
View crmUser.graphql
const crmUserQuery = gql`
query crmUser($id: ID!) {
crmUser(id: $id) {
id
name
business_card_photo
agent_license_number
brokerage_address
brokerage_name
about_me
View webapp.conf
server {
listen 80;
server_name staging.dev.psimple.co;
location / {
if ($http_user_agent ~* "googlebot|yahoo|bingbot|baiduspider|yandex|yeti|yodaobot|gigabot|ia_archiver|facebookexternalhit|twitterbot|developers\.google\.com") {
# proxy_pass http://phoenix_phoenix_1:4000;
}
}
View jsontoXML.json
{"db":[{"meta":{"exported_on":1507642075204,"version":"1.12.1"},"data":{"app_fields":[],"app_settings":[],"apps":[],"brute":[{"key":"G0EzxmGsJzNyOp/jfmGFccyooCbrF2vrEK4S7679Sag=","firstRequest":1507571792202,"lastRequest":1507571792202,"lifetime":1507575392512,"count":1}],"invites":[{"id":"599f035559da4700220a8deb","role_id":"59987998cb1b710019a38d00","status":"sent","token":"MTUwNDE5ODEwMTM5M3xoZXJtaW9uZUBwcm9wZXJ0eXNpbXBsZS5jb218REZLSjVmUjhnYzNlNTdjUlFBM0tZZ2dId01POW1mandJQmpGWW55N3RUaz0=","email":"hermione@propertysimple.com","expires":1504198101393,"created_at":"2017-08-24T16:48:21.000Z","created_by":"1","updated_at":"2017-08-24T16:48:24.000Z","updated_by":"1"},{"id":"59b1a6e31b087f002e2d1ecc","role_id":"59987998cb1b710019a38cff","status":"sent","token":"MTUwNTQxOTYxOTIxMXxjaW50aHlhQHByb3BlcnR5c2ltcGxlLmNvbXxoMWZMcG9OWjBtM21iWUZVU0VEczJVeVI1N3dKWWN2aGdUMXZqZ3JNWG5NPQ==","email":"cinthya@propertysimple.com","expires":1505419619211,"created_at":"2017-09-07T20:06:59.000Z","created_by":"59a581318a966b0022dfa0
@rodcisal
rodcisal / queryWithMyFBdata.js
Created Aug 16, 2017
query with my facebook data
View queryWithMyFBdata.js
mutation {
authenticateFacebookUser(uid:"1085278681616449", email:"rodcisal@gmail.com"){
id
homebuyer {
id
}
}
}
View atomConfig.cson
"*":
"atom-clock":
showClockIcon: true
core:
disabledPackages: [
"jshint"
"react"
"vim-mode-plus"
"atom-clock"
"linter-eslint"
View HTMLEditor.js
import React from 'react'
import {Editor} from 'react-draft-wysiwyg'
import {EditorState, ContentState, convertFromHTML} from 'draft-js'
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'
import draftToHtml from 'draftjs-to-html'
import UploadImage from '../../editor/uploadImage'
export default class Main extends React.Component {
static propTypes = {
View gist:198f5658e208660cb887b4d6cc605502
{
"regiones": [
{
"region": "Arica y Parinacota",
"comunas": [
"Arica",
"Camarones",
"Putre",
"General Lagos"
]
View gist:d931488a38c51a159c85c9ca7b74480c
Client Version: version.Info{Major:"1", Minor:"4+", GitVersion:"v1.4.0-beta.10", GitCommit:"3aa6d31d3a213ba04b3252cc123ddef26d44cd0e", GitTreeState:"clean", BuildDate:"2016-09-22T05:09:51Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"darwin/amd64"}
panic: runtime error: index out of range
goroutine 1 [running]:
panic(0x20856e0, 0xc820012080)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
k8s.io/kubernetes/pkg/client/typed/discovery.apiVersionsToAPIGroup(0xc82031e2d0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x33ad548, 0x0, 0x0, ...)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/client/typed/discovery/discovery_client.go:101 +0x20e
k8s.io/kubernetes/pkg/client/typed/discovery.(*DiscoveryClient).ServerGroups(0xc820475bc0, 0xc82058b4c8, 0x0, 0x0)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/client/typed/discovery/discovery_client.go:113 +0x1f6
You can’t perform that action at this time.