Say you have a code base that you just created and you have two commits locally:
commit a
commit b
This is your “version history”. You then push these commits to your remote. Now you have two repos with the same history:
We want PlanetScale to be the best place to work. But every company says that, and very few deliver. Managers have a role in creating an amazing work experience, but things go awry when the wrong dynamic creeps in.
We have all seen those managers who collect people as “resources” or who control information as a way to gain “power.” In these cultures, people who “can’t” end up leading the charge. This is management mediocrity.
What will make us different? At PlanetScale, we won’t tolerate management mediocrity. We are building a culture where politics get you nowhere and impact gets you far. Managers are here to support people who get things done. They are as accountable to their team as their team is accountable to them.
We evaluate managers on the wellbeing and output of their team, how skillfully they collaborate with and influence others, and how inclusively and transparently they work.
You can expect your manager to:
08/16/17 by Sergey Grebenshchikov
This is a quick tutorial on how to test code using the GoMock mocking library and the standard library testing package testing.
GoMock is a mock framework for Go. It enjoys a somewhat official status as part of the github.com/golang organization, integrates well with the built-in testing package, and provides a flexible expectation API.
| TZ='UTC' | |
| NODE_ENV=development | |
| PORT=8000 | |
| API_TOKEN=c03ec4d8-3cbe-43ff-98f8-f010cb5cb45e | |
| MIGRATION_DB_HOST=localhost | |
| MIGRATION_DB_PORT=5432 | |
| MIGRATION_DB_name=noted | |
| MIGRATION_DB_USER=postgres | |
| MIGRATION_DB_PASS=B3Th3B3st | |
| DATABASE_URL='postgres://postgres:B3Th3B3st@localhost/notes' |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)