Skip to content

Instantly share code, notes, and snippets.

Edoardo Rivello erivello

Block or report user

Report or block erivello

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
erivello / gist:1bec9ec35f26060c1019
Last active Mar 15, 2016
Informazioni tecniche
View gist:1bec9ec35f26060c1019
'field_peso' => array(
'title' => t('model.weight'),
'icon' => 'weight',
'field_potenza' => array(
'title' => t('model.power'),
'icon' => 'power',
'field_altezza_max_di_lavoro' => array(
'title' => t(''),
erivello / enable_modules
Created Jul 17, 2015
Fetch drupal's enabled modules and enable these
View enable_modules
enabled_modules=`cat enabled_modules.txt`
drush en $enabled_modules -y
View gist:26fd63a4b2fc211f4133
# vim:ft=zsh ts=2 sw=2 sts=2
# agnoster's Theme -
# A Powerline-inspired theme for ZSH
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](
erivello / gist:9b2a764b46a0018c8edf
Created Jul 29, 2014
Tell Capistrano which tag you want to deploy
View gist:9b2a764b46a0018c8edf
set :branch do
default_tag = `git tag`.split("\n").last
tag = Capistrano::CLI.ui.ask "Tag to deploy (make sure to push the tag first): [#{default_tag}] "
tag = default_tag if tag.empty?
View gist:63459dafea1c8f442456
// Light
#define LIGHT_PIN_OUT 13
#define LIGHT_PIN_IN 12
boolean light = true;
// Valve
#define VALVE_PIN_OUT 11
#define VALVE_PIN_IN 10
#define VALVE_PIN_1 6
erivello / UpdateListener.php
Created Nov 4, 2013
OnFlushEventArgs with Doctrine
View UpdateListener.php
namespace Raindrop\PageBundle\Listener;
use Doctrine\ORM\Event\OnFlushEventArgs;
use Raindrop\PageBundle\Entity\BlockVariable;
use Raindrop\PageBundle\Entity\Block;
* UpdateListener
erivello /
Last active Dec 16, 2015 — forked from stefanosala/gist:3881637
My dynamic (*.dev) vhost configuration and BIND configuration
$TTL 60
$ORIGIN dev.
@ 1D IN SOA localhost. root.localhost. (
45 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS localhost.
You can’t perform that action at this time.