Skip to content

Instantly share code, notes, and snippets.

View mikeumus's full-sized avatar
🎯
Focusing

Michael Duane Mooring mikeumus

🎯
Focusing
View GitHub Profile
@mikeumus
mikeumus / adminpanel-pg-error.md
Last active August 29, 2015 14:16
Treeline.io AdminPanel template errors
error: Sending 500 ("Server Error") response: 
 error: password authentication failed for user "mikeumus"
  at [object Object].Connection.parseE (/home/mikeumus/Downloads/Bevry/Docport.io/dev/docport-dev-001/api/machines/6edbad64-fa7f-4121-832d-7b636cae7f50_0.3.1/node_modules/pg/lib/connection.js:534:11)
  at [object Object].Connection.parseMessage (/home/mikeumus/Downloads/Bevry/Docport.io/dev/docport-dev-001/api/machines/6edbad64-fa7f-4121-832d-7b636cae7f50_0.3.1/node_modules/pg/lib/connection.js:361:17)
  at Socket.<anonymous> (/home/mikeumus/Downloads/Bevry/Docport.io/dev/docport-dev-001/api/machines/6edbad64-fa7f-4121-832d-7b636cae7f50_0.3.1/node_modules/pg/lib/connection.js:105:22)
  at Socket.emit (events.js:107:17)
  at readableAddChunk (_stream_readable.js:163:16)
  at Socket.Readable.push (_stream_readable.js:126:10)
  at TCP.onread (net.js:529:20)
@mikeumus
mikeumus / gist:1cf0f9e58215096f3ad8
Last active August 29, 2015 14:13
RG - destroy all pics error
irb(main):004:0> PropertyPhoto.destroy_all
Excon::Errors::Forbidden: Expected(200) <=> Actual(403 Forbidden)
response => #<Excon::Response:0x007f9e34d12278 @data={:body=>"", :headers=>{"Content-Type"=>"application/xml; charset=UTF-8", "Content-Length"=>"197", "Date"=>"Fri, 09 Jan 2015 15:16:03 GMT", "Expires"=>"Fri, 09 Jan 2015 15:16:03 GMT", "Cache-Control"=>"private, max-age=0", "Server"=>"UploadServer (\"Built on Dec 19 2014 10:24:45 (1419013485)\")", "Alternate-Protocol"=>"443:quic,p=0.02"}, :status=>403, :remote_ip=>"74.125.228.10", :local_port=>19547, :local_address=>"172.18.203.242"}, @body="", @headers={"Content-Type"=>"application/xml; charset=UTF-8", "Content-Length"=>"197", "Date"=>"Fri, 09 Jan 2015 15:16:03 GMT", "Expires"=>"Fri, 09 Jan 2015 15:16:03 GMT", "Cache-Control"=>"private, max-age=0", "Server"=>"UploadServer (\"Built on Dec 19 2014 10:24:45 (1419013485)\")", "Alternate-Protocol"=>"443:quic,p=0.02"}, @status=403, @remote_ip="74.125.228.10", @local_port=19547, @local_address="172.18.203.
The "fb-root" div has not been created, auto-creating
No authorizer factory was configured for Ember Simple Auth - specify one if backend requests need to be authorized.
Uncaught TypeError: Cannot read property 'signIn' of undefined portola.herokuapp.com/assets/portola-ca9290afdb80d331c3122273e1725f7b.js:1
Uncaught TypeError: Cannot read property 'name' of null cdn.firebase.com/v0/firebase.js:1
Object
Object
XMLHttpRequest cannot load https://www.googleapis.com/oauth2/v1/userinfo?access_token=ya29.dwBpIwEFPEyR8R0AAAC66G8OuXLUJt1ANwQTCPkQI_NNmnZlkd-6XUQUMiIYWQ. Credentials flag is 'true', but the 'Access-Control-Allow-Credentials' header is ''. It must be 'true' to allow credentials. portola.herokuapp.com/login:1
11
Uncaught TypeError: Cannot read property 'email' of undefined portola.herokuapp.com/assets/portola-ca9290afdb80d331c3122273e1725f7b.js:1
@mikeumus
mikeumus / codeship-fonda.md
Last active August 29, 2015 14:06
codeship fonda commands

Modify your Setup Commands

  • Feel free to delete all the comments and type in your own commands
  • Each line is treated like a command that you execute in a local shell.
  • i.e.: rvm use 1.9.3
  • i.e.: bundle install
rvm use ruby-2.1.2
rvm gemset create fonda
rvm use ruby-2.1.2@fonda
(trusty)mikeumus@localhost:~/Downloads/RentalGeek/Development/fonda/config$ rails server
=> Booting Unicorn
=> Rails 4.1.1 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/home/mikeumus/.rvm/gems/ruby-2.1.2/gems/activerecord-4.1.1/lib/active_record/connection_adapters/postgresql_adapter.rb:881:in `initialize': FATAL:  Peer authentication failed for user "fonda" (PG::ConnectionBad)
 from /home/mikeumus/.rvm/gems/ruby-2.1.2/gems/activerecord-4.1.1/lib/active_record/connection_adapters/postgresql_adapter.rb:881:in `new'
(trusty)mikeumus@localhost:~/Downloads/RentalGeek/Development/fonda$ gem install pg
Building native extensions.  This could take a while...
Successfully installed pg-0.17.1
invalid options: -f fivefish
(invalid options are ignored)
Parsing documentation for pg-0.17.1
Installing ri documentation for pg-0.17.1
Done installing documentation for pg after 2 seconds
1 gem installed
@mikeumus
mikeumus / install-tmate-ubuntu
Created August 13, 2014 02:05
install tmate.io
sudo apt-get install python-software-properties && \
sudo add-apt-repository ppa:nviennot/tmate && \
sudo apt-get update && \
sudo apt-get install tmate
@mikeumus
mikeumus / gist:70e47dae4f3c005d47fe
Created August 8, 2014 01:08
ember-cli RefferenceError: window is not defined
(trusty)mikeumus@localhost:~/Downloads/RentalGeek/Development/portola$ ember s

/home/mikeumus/Downloads/RentalGeek/Development/portola/node_modules/ember-cli/node_modules/leek/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/type/js/function.js:17
  if (window) { esprima = window.esprima; }
      ^
ReferenceError: window is not defined
    at Object.<anonymous> (/home/mikeumus/Downloads/RentalGeek/Development/portola/node_modules/ember-cli/node_modules/leek/node_modules/configstore/node_modules/js-yaml/lib/js-yaml/type/js/function.js:17:7)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-input/paper-input.html">