Skip to content

Instantly share code, notes, and snippets.

View hpatoio's full-sized avatar
:shipit:

Simone Fumagalli hpatoio

:shipit:
View GitHub Profile
@hpatoio
hpatoio / test-backstage.txt
Created September 1, 2023 14:13
test-backstage
here the content
@hpatoio
hpatoio / yml
Created September 8, 2020 12:21
.spectral
#CONFIGURATION FILE FOR SPECTRAL SWAGGER/OPEANAPI FILE LINTER
extends: spectral:oas
functions: [enum-uppercase]
rules:
enum-uppercase:
message: "{{error}}"
given: "$.paths.*.parameters.*.schema.enum"
then:
function: "enum-uppercase"
{
"children": {
"firstname": {
"value": "",
"type": "text",
"required": true,
"label": "Name"
},
"lastname": {
"value": "",
@hpatoio
hpatoio / tests.php
Last active September 10, 2015 11:58
<?php
public function testGetCitiesList()
{
$getClient = static::createClient([]);
$getClient->request(
'GET',
'/api/v3/cities',
@hpatoio
hpatoio / gist:d98fe1f6d456544b5795
Last active August 29, 2015 14:11
ID Doctrine
<?php
namespace My\Model;
/**
* @ORM\Table(name="user")
* @ORM\Entity()
*/
class User
{
@hpatoio
hpatoio / AccessTokenSubscriber.php
Last active August 29, 2015 14:05
Guzzle4 subscribers for access_token
<?php
namespace Hpatoio\Bitly\Subscribers;
use GuzzleHttp\Event\EmitterInterface;
use GuzzleHttp\Event\SubscriberInterface;
use GuzzleHttp\Command\Event\PrepareEvent;
class AccessTokenSubscriber implements SubscriberInterface
{
simone@ubuntu:~/workspace/sf2-demo$ composer update hpatoio/deploy-bundle
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing hpatoio/deploy-bundle (1.4)
Downloading: 100%
Writing lock file
Generating autoload files
Updating the "app/config/parameters.yml" file
simone@ubuntu:~/workspace/sf2-demo$ composer show hpatoio/deploy-bundle
PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
name : hpatoio/deploy-bundle
descrip. : Easy deploy via rsync. Porting of Symfony 1 project:deploy command.
keywords : deploy, command
versions : dev-master, 1.4, 1.3, 1.2, 1.1, 1.0, * dev-local
type : symfony-bundle
license : CC-BY-SA-3.0
source : [git] /home/simone/workspace/local_bundles/DeployBundle 5244f7447d4283ebdf7b4c19c5e0dca67267a0f8
dist : []
simone@namazu:~/workspace/sf2-demo$ tail -n 1 vendor/hpatoio/deploy-bundle/Hpatoio/DeployBundle/README.md
simone@namazu:~/workspace/sf2-demo$ composer update hpatoio/deploy-bundle
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing hpatoio/deploy-bundle (1.4)
- Installing hpatoio/deploy-bundle (dev-local 5244f74)
Cloning 5244f7447d4283ebdf7b4c19c5e0dca67267a0f8
[..]