use git diff to generate file list
git diff --name-only master
add ext filter
use git diff to generate file list
git diff --name-only master
add ext filter
#!/bin/sh | |
## Requires openssl, nodejs, jq | |
header=' | |
{ | |
"kid": "12345", | |
"alg": "RS256" | |
}' | |
payload=' | |
{ | |
"iss": "https://example.com", |
#!/bin/bash | |
aws ecr describe-repositories | jq '.repositories[].repositoryName' | xargs -I {} aws ecr put-lifecycle-policy --repository-name {} --lifecycle-policy-text "file://policy.json" |
# | |
# This is the default config file. It allows all users to do anything, | |
# so don't use it on production systems. | |
# | |
# Look here for more config file examples: | |
# https://github.com/verdaccio/verdaccio/tree/master/conf | |
# | |
# path to a directory with all packages | |
storage: ./storage |
Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
Render 1 | Render 2 | State Preserved? |
---|---|---|
<>...</> |
<>{[...]}</> |
yes (in any level) |
<><>...</></> |
<>...</> |
no |
[...] |
[[...]] |
no |
[<>...</>] * |
[...] |
no |
[<>...</>] * |
<>...</> |
no |
[<>...</>] * |
<>[...]</> |
no |
[<>...</>] * |
[[...]] |
yes |
[<>...>] * |
<><>...>> |
yes |
#!/bin/bash | |
# mongo-backup.sh | |
# Script to automate MongoDB Backups | |
# | |
# Requirements: | |
# mongodump | |
# s3cmd | |
# | |
# Author: |
FROM node:8.6.0-alpine | |
LABEL maintainer="https://github.com/verdaccio/verdaccio" | |
RUN apk --no-cache add openssl && \ | |
wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 && \ | |
chmod +x /usr/local/bin/dumb-init | |
# If you want "dokku enter" don't forget install bash | |
# https://github.com/dokku/dokku/issues/2572 | |
RUN apk update && \ |