Skip to content

Instantly share code, notes, and snippets.

View harokevin's full-sized avatar

Kevin Haro harokevin

View GitHub Profile
@harokevin
harokevin / CheckYaProps
Last active June 24, 2021 21:38
onChange ≠ onClick
This is a reminder to use the correct prop to get the expected data back.
Make sure to look through GH Issues, GH PRs, Stack Overflow, GH Source, try bumping the version, GH source of a the bumped version, and debugging (in that order) before checking prop names.
onChange ≠ onClick
@harokevin
harokevin / viewing_heroku_database_in_postico.md
Last active May 15, 2019 20:42
Viewing Heroku database in postico
  1. Look in the config/environment variables on your heroku instance
  2. Find and Copy the DATABASE_URL
  • Example DATABASE_URL: postgres://fforjkfkc:7217307aa219000000000000000000000000000000000000000170828@ec2.compute.amazonaws.com:5432/jfkfc8kh7kh747o6g

  • Anatomy: postgres://[user]:[password]@[host]:[port]:[database]

@harokevin
harokevin / heroku cli rails c
Created April 9, 2019 21:09
Rails console on heroku with heroku cli
heroku run -a app-name rails c
@harokevin
harokevin / Rake Commands
Created January 25, 2018 18:54
Rake Commands
rake -T