Skip to content

Instantly share code, notes, and snippets.

View CB9TOIIIA's full-sized avatar
💭
Make JBZoo Great Again ^_^

Eugene Kopylov CB9TOIIIA

💭
Make JBZoo Great Again ^_^
View GitHub Profile
@CB9TOIIIA
CB9TOIIIA / README-ru-RU.md
Created August 22, 2019 17:13 — forked from Septdir/README-ru-RU.md
Joomla - Cleanup after install

Joomla - Очистка после установки

Скрипт отключает не нужные разширения.

Как использовать

  1. Залейте файл cleanup.php в папку administation
  2. Перейдите по адресу https://www.example.com/administrator/cleanup.php
  3. Выберите те раширение которые надо отключить
  4. Нажмите Cleanup
  5. Удалите файл cleanup.php
@CB9TOIIIA
CB9TOIIIA / view-module-teml-joomla.php
Created June 15, 2018 11:16 — forked from zaurmag/view-module-teml-joomla.php
Вывод модулей в шаблоне Joomla
<?php //вывод позиции модулей
$document = JFactory::getDocument();
$renderer = $document->loadRenderer('modules');
$options = array('style' => 'xhtml');
$position = 'user1';
echo $renderer->render($position, $options, null);
?>
<!-- или -->
@CB9TOIIIA
CB9TOIIIA / Muller.md
Created July 24, 2017 07:12 — forked from mfd/ Muller.md
Muller font
https://cdn.rawgit.com/mfd/b366b05d1265ec42b852b7b2777d6711/raw/04f2ac0f5dcf790c097148cbe2887e798be9cb28/Muller.css

<link rel="https://cdn.rawgit.com/mfd/b366b05d1265ec42b852b7b2777d6711/raw/04f2ac0f5dcf790c097148cbe2887e798be9cb28/Muller.css">

<field name="myrepeatfield"
type="Repeatable"
icon="list"
description="Field Description here"
label="Field Label Here"
default="{'customfield1':['Custom Field 1 value repeat1', 'Custom Field 1 value repeat2'], 'customfield2':['Custom Field 2 value repeat1','Custom Field 2 value repeat2']}">
<fieldset hidden="true" name="myrepeatfield_modal" repeat="true">
<field name="customfield1"
<field name="myrepeatfield"
type="Repeatable"
icon="list"
description="Field Description here"
label="Field Label Here"
default="">
<fieldset hidden="true" name="myrepeatfield_modal" repeat="true">
<field name="customfield1"
@CB9TOIIIA
CB9TOIIIA / .bash_profile
Created November 23, 2016 12:21 — forked from SmetDenis/.bash_profile
jbzoo bashrc
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
@CB9TOIIIA
CB9TOIIIA / cron.sh
Created November 23, 2016 12:21 — forked from SmetDenis/cron.sh
0 0 * * * /some/path/to/a/file.php > $HOME/`date +\%Y\%m\%d\%H\%M\%S`-cron.log 2>&1
jbzoo items:items-import -vvv >> /home/vsem/logs/cron-jbzoo/`date +\%Y-\%m-\%d_\%H-\%M-\%S`-cron.log 2>&1
* * * * * /usr/local/bin/php -c /etc/php.ini ~/cli/jbzoo/vendor/jbzoo/console/bin/jbzoo items:items-import -vvv >> /home/vsem/logs/cron-jbzoo/`date +\%Y-\%m-\%d_\%H-\%M-\%S`-cron.log 2>&1
@CB9TOIIIA
CB9TOIIIA / rss-parser.php
Created November 14, 2016 08:39 — forked from bizikov/rss-parser.php
Парсер rss ленты на php
<?php
$orenru = 'http://www.oren.ru/rss/';
$ural56 = 'http://www.ural56.ru/news/news-rss.php';
$oreninform = 'http://oreninform.ru/rss/';
$ru56 = 'http://56.ru/text/rss.xml';
$xml = $orenru;
$rss = simplexml_load_file($xml);
echo '<div class="orenburg-rss-stream"><ul>';
@CB9TOIIIA
CB9TOIIIA / google-analytics.amp.html
Created February 22, 2016 09:22 — forked from Mika-/google-analytics.amp.html
Use Google Analytics in AMP HTML
<amp-pixel src="https://ssl.google-analytics.com/collect?v=1&amp;tid=UA-12345678-1&amp;t=pageview&amp;cid=$RANDOM&amp;dt=$TITLE&amp;dl=$CANONICAL_URL&amp;z=$RANDOM"></amp-pixel>
/*
* Required parameters:
* v = API version number (currently 1)
* tid = Google Analytics property identifier (UA-12345678-1)
* t = hit type
* cid = client id (you should implement this via cookie etc.)
* z = random string to bypass caching (amphtml generates this to $RANDOM variable)