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
<?php
declare(strict_types = 1);
namespace App\Tests\Integration;
use Doctrine\ORM\Tools\SchemaValidator;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use function array_walk;
use function implode;
@rrcfesc
rrcfesc / User.php
Created November 19, 2018 20:49 — forked from Ocramius/User.php
Doctrine 2 ManyToMany - the correct way
<?php
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity()
* @ORM\Table(name="user")
*/
class User
@rrcfesc
rrcfesc / AppKernel.php
Created November 16, 2018 20:58 — forked from K-Phoen/AppKernel.php
Functional tests for standalone Symfony2 bundles
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
return array(
@rrcfesc
rrcfesc / letsencrypt_2018.md
Created July 26, 2018 17:23 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@rrcfesc
rrcfesc / brutus.py
Created April 17, 2018 23:48 — forked from Phillip-C/brutus.py
Python FTP Brute-Force and Dictionary Attack Tool
#!/usr/bin/python
################################################################################
# tool: Brutus - FTP Brute-Force/Dictionary Attack Tool
# version: 0.3
# email: mrh@bushisecurity.com
# www: bushisecurity.com/brutus/
################################################################################
# MIT License
@rrcfesc
rrcfesc / pagen.py
Created April 17, 2018 23:48 — forked from Phillip-C/pagen.py
Brute-Force Password Generator
#!/usr/bin/python
################################################################################
# tool: PaGen - Brute-Force Password Generator
# version: 0.2
# email: mrh@bushisecurity.com
# www: bushisecurity.com/pagen/
################################################################################
# MIT License