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 path, {dirname} from "path"; | |
| import {fileURLToPath} from "url"; | |
| import prismaInternals from '@prisma/internals'; | |
| const {getDMMF} = prismaInternals; | |
| const __filename = fileURLToPath(import.meta.url); | |
| const __dirname = dirname(__filename); | |
| export const validateRequestPayload = async (modelName, requestBody) => { | |
| try { |
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
| NODE_ENV=pipeline | |
| BASEURL=https://example.com/api | |
| OAUTH_BASE_URL=https://[enter-your-own].auth0.com | |
| OAUTH_ACCESS_TOKEN_URL=https://[enter-your-own].auth0.com/oauth/token | |
| OAUTH_CLIENT_ID=___INSERT_HERE_YOUR_AUTH0_CLIENT_ID___ | |
| OAUTH_CLIENT_SECRET=___INSERT_HERE_YOUR_AUTH0_CLIENT_SECRET___ | |
| OAUTH_AUDIENCE=___INSERT_HERE_YOUR_AUTH0_AUDIENCE___ | |
| OAUTH_ACCOUNT_ID=___INSERT_HERE_YOUR_AUTH0_ACCOUNT_ID___ | |
| OAUTH_GRANT_TYPE=client_credentials | |
| OAUTH_TOKEN_URL=https://[enter-your-own].auth0.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
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", |
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
| { | |
| "name": "Auth0-Oauth2", | |
| "values": [ | |
| { | |
| "key": "baseUrl", | |
| "value": "https://example.com/api", | |
| "enabled": true | |
| }, | |
| { | |
| "key": "oauth_access_token", |
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
| function SaveFileCtrl (SaveFileService) { | |
| var vm = this; | |
| function downloadFile(someArgument) { | |
| SaveFileService.downloadFile({ | |
| param: someArgument | |
| }, function (response) { | |
| var fileName = response.headers['content-disposition'].split("=")[1].replace(/\"/gi,''); | |
| var fileType = response.headers['content-type'] + ';charset=utf-8'; | |
| var blob = new Blob([response.data], { type: fileType }); |
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
| # Let apache know we're behind a SSL reverse proxy | |
| SetEnvIf X-Forwarded-Proto "https" HTTPS=on | |
| # Redirect to HTTPS | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{HTTPS} !=on | |
| RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC] | |
| RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
| </IFModule> |
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
| <?php | |
| namespace AppBundle\Command; | |
| use AppBundle\Entity\Evento; | |
| use AppBundle\Entity\EventoAdjunto; | |
| use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Input\InputOption; |