This file contains 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
openapi: 3.0.3 | |
info: | |
title: Buyer API | |
version: 0.1.0 | |
paths: | |
/products/{productId}/currentTariffGroup: | |
parameters: | |
- $ref: '#/components/parameters/ProductIdParam' | |
get: | |
responses: |
This file contains 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
" References: | |
" https://dougblack.io/words/a-good-vimrc.html | |
" https://github.com/amix/vimrc | |
" Vundle setup | |
set nocompatible " be iMproved, required | |
filetype off " required |
This file contains 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
<IfModule mod_rewrite.c> | |
# Redirect to another domain | |
RewriteCond %{HTTP_HOST} ^example\.com$ [NC] # Here goes the regex to match the domain that will be redirected | |
RewriteCond %{HTTP_HOST} ^(www\.)?example\.net$ [NC] # Create a new condition for every domain, if possible | |
RewriteRule ^(.*)$ http://www.example.it/$1 [R=301,NC,L] | |
# Force redirect to www | |
RewriteCond %{HTTP_HOST} ^example\.com$ | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,NC,L] |
This file contains 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 | |
error_reporting(E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR); // Just fatal erros | |
// error_reporting(E_ALL); // All levels of errors | |
ini_set('display_errors', 1); // Sets to display the errors on the page |
This file contains 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
<VirtualHost 127.0.0.1> | |
DocumentRoot "C:/example/app" | |
ServerName example.dev:80 | |
<Directory "C:/example/app"> | |
Options FollowSymLinks Indexes | |
AllowOverride All | |
Order deny,allow | |
Allow from 127.0.0.1 | |
Deny from all | |
Require all granted # If the project returns "internal error", try to comment this line. |