Skip to content

Instantly share code, notes, and snippets.

View rlucia's full-sized avatar

Rocco Lucia rlucia

  • Iscanet
  • Filiano, Italy
  • 23:38 (UTC +02:00)
View GitHub Profile
@rlucia
rlucia / iliad.html
Created May 29, 2018 22:40
View iliad italy coverage map on local computer
<!doctype html>
<html lang="it">
<head>
<meta charset="utf-8">
<base href="http://www.iliad.it/">
<title>Benvenuto in iliad</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
@rlucia
rlucia / commit_msg
Created March 3, 2017 19:35
Gets story id from branch name and uses it in commit message
#!/bin/sh
# Copy this file into .git/hooks
# Gets story id from branch name (storyid_blahblahblah) and uses it in commit
# message.
# E.g.
# your branch name: `12345_new_feature`
# your commit command: `commit -m "Brand new algorithm" file`
# the final commit message: `[#12345] Brand new algorithm`
@rlucia
rlucia / gist:9d28303235f32cdeb73a
Created July 1, 2014 16:23
Restore EmailRegistrationInfo in eZPublish kernel
diff --git a/ezpublish_legacy/kernel/user/ezuseroperationcollection.php b/ezpublish_legacy/kernel/user/ezuseroperationcollection
index 2714497..641e8af 100644
--- a/ezpublish_legacy/kernel/user/ezuseroperationcollection.php
+++ b/ezpublish_legacy/kernel/user/ezuseroperationcollection.php
@@ -215,6 +215,7 @@ class eZUserOperationCollection
eZDebugSetting::writeNotice( 'Sending approval notification to the user.' , 'kernel-user', 'user register' );
$user = eZUser::fetch( $userID );
$ini = eZINI::instance();
+ if( $ini->variable( 'UserSettings', 'EmailRegistrationInfo' ) !== 'disabled') {
// Send mail