Skip to content

Instantly share code, notes, and snippets.

View enzolutions's full-sized avatar
:octocat:

enzo - Eduardo Garcia enzolutions

:octocat:
View GitHub Profile
diff --git a/plupload.module b/plupload.module
index 6dbbddd..3249bcb 100644
--- a/plupload.module
+++ b/plupload.module
@@ -288,7 +288,7 @@ function plupload_library() {
'runtimes' => 'html5,flash,html4',
'url' => url('plupload-handle-uploads', array('query' => array('plupload_token' => drupal_get_token('plupload-handle-uploads')))),
'max_file_size' => file_upload_max_size() . 'b',
- 'chunk_size' => '1mb',
+ 'chunk_size' => parse_size(ini_get('post_max_size')),
@enzolutions
enzolutions / gist:3503705
Created August 28, 2012 20:18
notes_for_richard
Lunes
gsinfo gardens --name=sm gardens --verify
-- nid
-- name
--db
--url
--verify=true
Master:
@enzolutions
enzolutions / gist:3779954
Created September 25, 2012 04:16
Config CS review
diff --git a/core/lib/Drupal/Core/Config/Config.php b/core/lib/Drupal/Core/Config/Config.php
index 538ab6d..85a00c9 100644
--- a/core/lib/Drupal/Core/Config/Config.php
+++ b/core/lib/Drupal/Core/Config/Config.php
@@ -83,6 +83,9 @@ class Config {
/**
* Initializes a configuration object.
+ *
+ * @return Drupal\Core\Config\Config
<?php
namespace Drupal\Blog\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Template\TwigEnvironment;
class DefaultController extends ControllerBase implements ContainerInjectionInterface {
<?php
/**
* @file
* Contains \Drupal\AppConsole\Command\SiteInstallCommand.
*/
namespace Drupal\Console\Command;
use Symfony\Component\Console\Input\InputArgument;
-- Config Start --
drupal generate:module --module="Royal Challengers" --machine-name="royal_challengers" --module-path="/modules/custom" --description="No, I can't speak Hindi" --core="8.x" --package="AFL" --module-file --composer --dependencies="user" --no-interaction
drupal module:install royal_challengers
drupal config:debug
drupal config:debug system.site
drupal config:export
drupal config:override system.site mail [email protected]
drupal config:debug system.site
-- Config Start --
drupal generate:module --module="Royal Challengers" --machine-name="royal_challengers" --module-path="/modules/custom" --description="No, I can't speak Hindi" --core="8.x" --package="AFL" --module-file --composer --dependencies="user" --no-interaction
drupal module:install royal_challengers
drupal config:debug
drupal config:debug system.site
drupal config:export
drupal config:override system.site mail [email protected]
drupal config:debug system.site
-- Config Start --
drupal generate:module --module="Gremio" --machine-name="gremio" --module-path="/modules/custom" --description="No, I can't speak Portuguese" --core="8.x" --package="FISL17" --module-file --composer --dependencies="user" --no-interaction
drupal module:install gremio
drupal config:debug
drupal config:debug system.site
drupal config:export
drupal config:override system.site mail [email protected]
drupal config:debug system.site
@enzolutions
enzolutions / gist:385972603b7bfe839f24836c78a50997
Created July 18, 2016 11:37
DrupalGov 16 - Drupal Console Overview
-- Config Start --
drupal generate:module --module="Redskins" --machine-name="redskins" \
--module-path="/modules/custom" --description="No, I can't understand NFL" \
--core="8.x" --package="NFL" --module-file --composer --dependencies="user" \
--no-interaction
drupal module:install redskins
drupal config:debug
drupal config:debug system.site
-- Config Start --
drupal generate:module --module="Paris Saint-Germain" --machine-name="psg" --module-path="/modules/custom" --description="No, I can't speak French" --core="8.x" --package="France" --module-file --composer --dependencies="user" --no-interaction
drupal module:install psg
drupal config:debug
drupal config:debug system.site
drupal config:export
drupal config:override system.site mail [email protected]
drupal config:debug system.site