Skip to content

Instantly share code, notes, and snippets.

@Stunext
Stunext / HandlePutFormData.php
Created November 20, 2018 20:12
Laravel: Middleware to support multipart/form-data in PUT, PATH and DELETE requests
<?php
namespace App\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
/**
* @author https://github.com/Stunext
*
@gamcoh
gamcoh / main.py
Created February 28, 2019 12:56
Change OVH DNS
# -*- encoding: utf-8 -*-
import ovh
# Instantiate. Visit https://api.ovh.com/createToken/?GET=/me
# to get your credentials
client = ovh.Client(
endpoint='ovh-eu',
application_key='<your application key>',
application_secret='<your application secret>',