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:
| create_note() { | |
| # Get the current date in the format YYYY-MM-DD | |
| local date=$(date +%Y-%m-%d) | |
| # Generate the file path | |
| local filepath="/Documents/notes/${date}-${1}.md" | |
| # Create the file | |
| touch "$filepath" | |
| } |
Markdown front matter refers to a block of metadata at the beginning of a Markdown file, usually written in YAML or JSON format. Front matter provides a way to store additional information about the content, such as title, author, date, tags, and other custom attributes.
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.
| version: 2 | |
| jobs: | |
| publish: | |
| docker: | |
| - image: <docker-image-name-tag> | |
| auth: | |
| username: mydockerhub-user | |
| password: mypassword123 | |
| steps: |
| // you can play with the code via https://go.dev/play/p/bVfCe51O0en | |
| package main | |
| import "fmt" | |
| // src/add.go | |
| type Adder interface { | |
| add(int, int) int |
Run a docker image
docker run nginx
Run a specific tag of a docker image
docker run redis:4.0
List all running containers
| 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' |