Skip to content

Instantly share code, notes, and snippets.

View lrealdi's full-sized avatar

Luca Realdi lrealdi

View GitHub Profile
@lrealdi
lrealdi / olanda.css
Last active February 11, 2020 10:28
select.bs-select-hidden,.bootstrap-select>select.bs-select-hidden,select.selectpicker{display:none !important}.bootstrap-select{width:220px \0;vertical-align:middle}.bootstrap-select>.dropdown-toggle{position:relative;width:100%;text-align:right;white-space:nowrap;display:inline-flex;align-items:center;justify-content:space-between}.bootstrap-select>.dropdown-toggle:after{margin-top:-1px}.bootstrap-select>.dropdown-toggle.bs-placeholder,.bootstrap-select>.dropdown-toggle.bs-placeholder:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,.form-check .bootstrap-select>[type='checkbox']:focus+label.dropdown-toggle.bs-placeholder,.form-check .bootstrap-select>[type='radio']:focus+label.dropdown-toggle.bs-placeholder,.toggles label .bootstrap-select>input[type='checkbox']:focus+.dropdown-toggle.bs-placeholder.lever,.bootstrap-select>.dropdown-toggle.bs-placeholder:active{color:#999}.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary,.bootstrap-select>.dropdown-toggle.bs-placeholder.defaultbutto
#################
##### DEBUG #####
#################
[MailSettings]
Transport=file
[ContentSettings]
ViewCaching=disabled
#!/usr/bin/env php
<?php
set_time_limit ( 0 );
require_once 'autoload.php';
$cli = eZCLI::instance();
$script = eZScript::instance( array( 'description' => ( "Follia" ),
'use-session' => false,
'use-modules' => true,
'use-extensions' => true ) );
<?php
/**
* Genarates formatted tables for CLI output
*/
class Table {
/**
* Table header, array of names
* @var array
select * from ezcontentobject_version where contentobject_id in (select id from ezcontentobject where contentclass_id not in (select id from ezcontentclass));
delete from ezcontentobject_version where contentobject_id in (select id from ezcontentobject where contentclass_id not in (select id from ezcontentclass))
select count(*) from ezcontentobject_attribute where contentobject_id in (select id from ezcontentobject where contentclass_id not in (select id from ezcontentclass));
delete from ezcontentobject_attribute where contentobject_id in (select id from ezcontentobject where contentclass_id not in (select id from ezcontentclass));
select count(*) from ezcontentobject_name where contentobject_id in (select id from ezcontentobject where contentclass_id not in (select id from ezcontentclass));
delete from ezcontentobject_name where contentobject_id in (select id from ezcontentobject where contentclass_id not in (select id from ezcontentclass));
select count(*) from ezcontentobject_tree where contentobject_
<?php
$endpoint = 'https://master-7rqtwti-yxjilnpzbcin2.eu-2.platformsh.site/api/ezp/v2/';
$user = 'admin';
$password = 'publish';
$debug = false;
function output($string, $addEOL = true)
{
$eol = $addEOL ? "\n" : '';
<?php
/**
* Genarates formatted tables for CLI output
*/
class Table {
/**
* Table header, array of names
* @var array
#!/usr/bin/env php
<?php
$arguments = $GLOBALS['argv'];
$program = $arguments[0];
array_shift($arguments);
$config = array(
'login' => $arguments[1],
'password' => $arguments[2],
#!/usr/bin/env php
<?php
$arguments = $GLOBALS['argv'];
$program = $arguments[0];
array_shift($arguments);
$home = getenv("HOME");
$configFile = "$home/.opencensimento";
if (!file_exists($configFile)) {
<?php
require 'autoload.php';
$script = eZScript::instance(array(
'description' => ( "Cambio password\n\n" ),
'use-session' => false,
'use-modules' => true,
'use-extensions' => true
));