npm ls -g --depth=0
docker run --name bundler -dt -v path/to/real/folder:/docker-folder amazonlinux
This first command starts a Docker container named bundler
with a volume (-v
) that is a bind mount between the real folder at path path/to/real/folder
and the virtual Docker folder at docker-folder
.
It creates the container from the amazonlinux
image.
This also runs the container with the -d
and the -t
flags, which means that the container is running in detached mode (-d
), and also with an attached TTY (-t
), so it will accept commands that you give it.
function recursiveMerge(...objects) {
function byMerger(newObj, obj) {
if (!Object.keys(newObj).length) return obj
for (const [key, value] of Object.entries(obj)) {
if (newObj[key] && typeof newObj[key] !== 'string' && Object.keys(newObj[key]).length)
newObj[key] = recursiveMerge(newObj[key], value)
You can use pixta-dev's repository-mirroring-action to forward commits to an AWS CodeCommit repo.
- You'll first need to create an AWS CodeCommit repo.
- You'll need to generate an SSH key pair (or have one ready to use).
- There is a section called SSH Keys for AWS CodeCommit inside the AWS IAM dashboard. Here, you'll upload the public portion of the SSH key pair.
- Copy the SSH Key ID that gets generated in the AWS IAM dashboard after you've uploaded the SSH public key.
- In the repo where the GitHub Action will be active, create a secret called CODECOMMIT_SSH_PRIVATE_KEY_ID. Paste in the SSH Key ID as the value of this secret and save it.
- Get the SSH URL of the CodeCommit repo. You can get this from the main CodeCommit dashboard where you see all your repos. This is the SSH URL that you would use to clone the repo via SSH.
Based on this comment from a GitHub issue.
type Person {
"""name of a person"""
name: String
#TODO: Add surname
}
- Create a new API call.
- Set the request type to POST.
- In the AppSync console, copy the API URL for the API you want to interact with. This is found in the Settings for the API.
- Inside the Headers tab for the API call, add an x-api-key header, and set the value to the API key for the API. This is found in the Settings for the API.
- Add another header called Content-Type, and set the value to application/graphql.
- In the Body tab, add the GraphQL query, and set the query type to GraphQL radio button.