/etc/init.d/mysql stopRun
mysqld_safe --skip-grant-tables &
<?php | |
function gen_uuid($len=8) { | |
$hex = md5("yourSaltHere" . uniqid("", true)); | |
$pack = pack('H*', $hex); | |
$tmp = base64_encode($pack); | |
$uid = preg_replace("#(*UTF8)[^A-Za-z0-9]#", "", $tmp); |
<?php | |
namespace LMammino\Generator; | |
class Uid | |
{ | |
/** | |
* @var string | |
*/ | |
protected $salt; |
{ | |
"name": "example/multicurl", | |
"description": "a test with various multi curl libraries", | |
"require": { | |
"kriswallsmith/buzz": "dev-master", | |
"rdlowrey/artax": "dev-master", | |
"jyggen/curl": "dev-master" | |
}, | |
"license": "MIT", | |
"authors": [ |
Moved to dedicated repository: lmammino/cube-daemons
<?php | |
namespace Sbaam\Bundle\InviteBundle\Http; | |
use Symfony\Component\HttpFoundation\Response; | |
/** | |
* Class BlankPixelResponse | |
* @package Sbaam\Bundle\InviteBundle\Http |
I hereby claim:
To claim this, I am signing this object:
<?php | |
namespace Oinm\ServiceBundle\DependencyInjection; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\Config\FileLocator; | |
use Symfony\Component\HttpKernel\DependencyInjection\Extension; | |
use Symfony\Component\DependencyInjection\Loader; | |
/** |
<?php | |
namespace Acme\UserBundle\Model; | |
use FOS\UserBundle\Entity\UserManager as BaseUserManager; | |
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; | |
class UserManager extends BaseUserManager | |
{ | |
public function loadUserByUsername($username) |
<?php | |
namespace Sbaam\Bundle\UtilsBundle\Command; | |
use Symfony\Component\Console\Command\Command, | |
Symfony\Component\Console\Input\InputArgument, | |
Symfony\Component\Console\Input\InputInterface, | |
Symfony\Component\Console\Input\InputOption, | |
Symfony\Component\Console\Output\OutputInterface; |