Skip to content

Instantly share code, notes, and snippets.

openapi: 3.0.3
info:
title: Buyer API
version: 0.1.0
paths:
/products/{productId}/currentTariffGroup:
parameters:
- $ref: '#/components/parameters/ProductIdParam'
get:
responses:
@Jesm
Jesm / .vimrc
Last active October 19, 2023 20:04
" References:
" https://dougblack.io/words/a-good-vimrc.html
" https://github.com/amix/vimrc
" Vundle setup
set nocompatible " be iMproved, required
filetype off " required
@Jesm
Jesm / .htaccess
Last active January 21, 2016 17:48
Just some trivial tasks to do with .htaccess
<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]
@Jesm
Jesm / enable_errors.php
Last active August 29, 2015 14:16
Enable errors in PHP
<?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
@Jesm
Jesm / httpd-vhosts.conf
Last active November 21, 2015 21:55
Define virtual host in apache for development
<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.