This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Build a "ready-to-work" rootfs by running an install hook inside a | |
| // base rootfs, then freezing the result to a tarball. | |
| // | |
| // pnpm provision # incremental — runs only what changed | |
| // pnpm provision --force # ignore the stamp, full rebuild | |
| // | |
| // Three speedups stack up: | |
| // | |
| // 1. Incremental base. After the first successful provision we use | |
| // ./app.tar.gz itself as the base for re-provisions. apt-get |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ x yarn rw build -v | |
| [STARTED] Generating Prisma Client... | |
| Prisma schema loaded from db/schema.prisma | |
| ✔ Generated Prisma Client (v5.9.1) to ./../node_modules/@prisma/client in 31ms | |
| Start using Prisma Client in Node.js (See: https://pris.ly/d/client) | |
| ``` | |
| import { PrismaClient } from '@prisma/client' | |
| const prisma = new PrismaClient() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM postgres:14.4-alpine | |
| COPY postgresql.conf /etc/postgresql/ | |
| COPY stop-postgres-on-idle.sh /usr/local/bin/ | |
| RUN chmod +x /usr/local/bin/stop-postgres-on-idle.sh | |
| RUN echo '* * * * * /usr/local/bin/stop-postgres-on-idle.sh' > /etc/crontabs/root | |
| COPY custom-entrypoint.sh /usr/local/bin/ | |
| RUN chmod +x /usr/local/bin/custom-entrypoint.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| faker.internet.email.() | |
| 'Elva67@hotmail.com' | |
| faker.internet.email.() | |
| 'Lonny74@yahoo.com | |
| 'faker.internet.email.() | |
| 'Clara16@hotmail.com’ | |
| faker.internet.email.() | |
| 'Gaetano87@yahoo.com’ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { transformSync } from '@swc/core' | |
| import path from 'path' | |
| import { AliasPathResolver } from './index' | |
| test('named `src` imports', () => { | |
| // create resolved path. | |
| const out = transformSync( | |
| ` | |
| import { woof } from 'src/lib/dog.ts' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| rsvg-convert -v > /dev/null 2>&1 || { echo "rsvg-convert is not installed, use: brew install librsvg." >&2; exit 1; } | |
| ASSETS_FOLDER=$1 | |
| if [ "$ASSETS_FOLDER" == "" ]; then | |
| echo "Usage: $0 /path/to/svg/assets/" >&2 | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (?:http://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\. | |
| )*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+) | |
| ){3}))(?::(?:\d+))?)(?:/(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F | |
| \d]{2}))|[;:@&=])*)(?:/(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{ | |
| 2}))|[;:@&=])*))*)(?:\?(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{ | |
| 2}))|[;:@&=])*))?)?)|(?:ftp://(?:(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(? | |
| :%[a-fA-F\d]{2}))|[;?&=])*)(?::(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a- | |
| fA-F\d]{2}))|[;?&=])*))?@)?(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|- | |
| )*[a-zA-Z\d])?)\.)*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(? | |
| :\d+)(?:\.(?:\d+)){3}))(?::(?:\d+))?))(?:/(?:(?:(?:(?:[a-zA-Z\d$\-_.+! |