Skip to content

Instantly share code, notes, and snippets.

View zanardigit's full-sized avatar
💭
Probably coding anyway

Francesco Abeni zanardigit

💭
Probably coding anyway
View GitHub Profile
@zanardigit
zanardigit / onepilot_symfony_client.json
Created September 18, 2018 16:07
Validate: second try (all data)
{
"core":{
"version":"3.4.15",
"new_version":null,
"last_available_version":"5.7.3"
},
"servers":{
"php":"7.0.30-0ubuntu0.16.04.1",
"web":"PHP 7.0.30-0ubuntu0.16.04.1 Development Server",
"mysql":"5.7.23-0ubuntu0.16.04.1"
@zanardigit
zanardigit / gist:29968705b8e9d46279b765fe1171f7e6
Created September 18, 2018 15:43
Validate: first try (plugins only)
{
"core":[
],
"servers":[
],
"plugins":[
{
"name":"collections",
@zanardigit
zanardigit / build_symfony_epub.sh
Created November 8, 2015 16:39
Script to build epub from Symfony docs repos
#!/bin/bash
#
# apt-get install git
# apt-get install python-sphinx
#
# This script assumes you have am existing clone of each repo in $home_dir
home_dir=/home/zanardi
web_dir=/var/www/symfonyepub
@zanardigit
zanardigit / gist:7990901
Created December 16, 2013 17:31
Override for Latest Articles module for Joomla to show Intro + Full text
<?php
defined('_JEXEC') or die;
?>
<ul class="latestnews<?php echo $moduleclass_sfx; ?>">
<?php foreach ($list as $item) : ?>
<?php
$db = JFactory::getDbo();
$query = "SELECT `fulltext` FROM `#__content` WHERE `id` = ".$item->id;
$db->setQuery($query);
$item->fulltext = $db->loadResult();