Skip to content

Instantly share code, notes, and snippets.

Alessandro Tagliapietra alex88

Block or report user

Report or block alex88

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am alex88 on github.
  • I am alex88 (https://keybase.io/alex88) on keybase.
  • I have a public key ASAn5RwKkVAWs6QH1LUageUbP0DoqMdAHNSg3Qs6ZNdjtQo

To claim this, I am signing this object:

View RequestJsonDecoder.php
<?php
namespace Acme\DemoBundle\Annotation;
/**
* The Annotation class
*
* @Annotation
*/
class RequestJsonDecoder
@alex88
alex88 / mysql_ramdisk.rb
Created Jul 19, 2013
Creates a ramdisk on osx and runs a mysql instance using pre-installed homebrew percona or mysql server Use directly to create, with 'shutdown' argument to tear off the mysql and the disk To connect use -h 127.0.0.1 -P3307
View mysql_ramdisk.rb
#!/usr/bin/env ruby
shutdown = false
cnf_path = '/usr/local/etc/my_ramdisk.cnf'
ramdisk_path = '/Volumes/RAMDisk'
loop { case ARGV[0]
when 'shutdown' then ARGV.shift; shutdown = true
else break
end; }
@alex88
alex88 / services.yml
Created Jul 4, 2013
Add useful informations to logs
View services.yml
services:
monolog.processor.session_request:
class: Acme\CoreBundle\Service\sessionRequestProcessor
arguments: [ @session, @service_container, @kernel ]
tags:
- { name: monolog.processor, method: processRecord }
You can’t perform that action at this time.