Skip to content

Instantly share code, notes, and snippets.

View maschmann's full-sized avatar
:octocat:
deepthought²

Marc Aschmann maschmann

:octocat:
deepthought²
View GitHub Profile
@maschmann
maschmann / nginx.conf
Created April 25, 2019 20:18 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# UPDATED 17 February 2019
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
listen [::]:80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
}
# SSL configuration
@maschmann
maschmann / NewPasswordType.php
Created September 9, 2018 16:26 — forked from florentdestremau/NewPasswordType.php
A simple User authentication setup to copy & paste into your Symfony 3.4 install
<?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;

Keybase proof

I hereby claim:

  • I am maschmann on github.
  • I am maschmann (https://keybase.io/maschmann) on keybase.
  • I have a public key whose fingerprint is C4B5 97FE 7F48 3E90 FA4E 0B5A B9CA 9B76 C567 9642

To claim this, I am signing this object:

<?php
namespace Ormigo\Bundle\TranslationBundle\Translation\Dumper;
use Ormigo\Bundle\TranslationBundle\Translation\Loader\PdoLoader;
use Symfony\Component\Translation\Dumper\DumperInterface;
use Symfony\Component\Translation\MessageCatalogue;
class PdoDumper extends PdoLoader implements DumperInterface
<?php
namespace Openaip\Bundle\CoreBundle\Form\Extension;
use Openaip\Bundle\CoreBundle\Utility\UniqueString;
use Symfony\Component\Form\AbstractTypeExtension;
use Openaip\Bundle\CoreBundle\Exception\RuntimeException;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents;
@maschmann
maschmann / 0_reuse_code.js
Created November 13, 2013 14:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console