Skip to content

Instantly share code, notes, and snippets.

@nesjett
nesjett / Dockerfile
Last active March 23, 2022 14:54
sh script to generate Amazon AWS credentials file from Docker Swarm secrets
FROM node:alpine3.15
COPY ./aws-setup-credentials.sh /scripts
ENTRYPOINT ["/scripts/aws-setup-credentials.sh"]
@nesjett
nesjett / UserLocationCustom.tsx
Created August 13, 2021 10:48
React native mapbox custom UserLocation
/**
*
* Detailed explanation (how to use) at https://nsabater.com/react-native-mapboxgl-custom-userlocation
* Code writteng by Nestor Sabater extending React Native mapboxgl base code.
*
* NOTE: The file should be split away in different smaller files, but the original source code for the
* component UserLocation.js is written in a single file, so I preserved that pattern for this example.
*
***/