Skip to content

Instantly share code, notes, and snippets.

View rrcfesc's full-sized avatar
🌌
Quis custodiet ipsos custodes?

Ricardo Jesus Ruiz Cruz rrcfesc

🌌
Quis custodiet ipsos custodes?
View GitHub Profile
@kibao
kibao / ApiUploadedFile.php
Last active February 22, 2022 15:14
Symfony2 Form Component. Support upload file through API call (e.g. in json, xml, etc.) as base64 encoded content .
<?php
namespace Infun\HttpFoundation\File;
use Symfony\Component\HttpFoundation\File\File;
class ApiUploadedFile extends File
{
public function __construct($base64Content)
@plentz
plentz / nginx.conf
Last active July 22, 2024 11:19
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048