Skip to content

Instantly share code, notes, and snippets.

View tomfun's full-sized avatar

Greg tomfun

View GitHub Profile
@tomfun
tomfun / gen.sh
Created September 4, 2015 10:30
generate ssl certificate/wildcard
#!/usr/bin/env bash
# https://serversforhackers.com/self-signed-ssl-certificates
# http://stackoverflow.com/questions/7580508/getting-chrome-to-accept-self-signed-localhost-certificate
# Specify where we will install
# the xip.io certificate
SSL_DIR="/home/tomfun/prj/ssl/o.o"
SSL_FILE="o.o"
# Set the wildcarded domain
# we want to use
DOMAIN="*.o.o"
//StreamBuffer.php (260..261)
//vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php
//_establishSocketConnection
$options['ssl']['verify_peer'] = FALSE;
$options['ssl']['verify_peer_name'] = FALSE;
@tomfun
tomfun / RestAttributeController.php
Created July 11, 2015 18:13
doctrine sql log on screen
$this->em->getConnection()
->getConfiguration()
->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger())
;