devops

Assuming an IAM role using the Instance MetaData Service

In AWS, one often needs to access certain resources, like S3 or SQS, from an EC2 instance. There are several methods to get the credentials to access those resources one of which is the Instance MetaData Service.

Read
nodejs

Project and application node_modules

An application node_modules directory may be used to effectively remove relative paths in source files when referencing to the application sub-modules.

Read
gatsby

Raw JSON query on Gatsby

The gatsby-transformer-rawjson plugin allows to publish the properties of a JSON node in raw form using the JSON GraphQL scalar type.

Read
Meteor

Meteor wrapAsync and this

Calling wrapAsync on a function will not propagate the value of this from the resulting function to the wrapped function. But the behaviour may be emulated by transforming it into an actual parameter.

Read