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
@Mika-
Mika- / google-analytics.amp.html
Created October 18, 2015 10:34
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)
#!/usr/bin/env sh
------------------------------------------
openssl genrsa -out jbzoo-com-ca.key 2048
openssl req -x509 -new -key jbzoo-com-ca.key -days 10000 -out jbzoo-com-ca.crt
openssl genrsa -out jbzoo-com-server.key 2048
openssl req -new -key jbzoo-com-server.key -out jbzoo-com-server.csr
openssl x509 -req -in jbzoo-com-server.csr -CA jbzoo-com-ca.crt -sha256 -CAkey jbzoo-com-ca.key -CAcreateserial -out jbzoo-com-server.crt -days 5000
@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 / gist:c14fdcbb3e60d54e45155dc81befeb40
Last active September 28, 2017 08:00
jbzoo CLI - u.ua - proc_open ON
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ll='ls -l'
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]'
@CB9TOIIIA
CB9TOIIIA / subform repeatable-table joomla
Last active March 15, 2017 11:49
subform repeatable-table joomla
<fieldset name="Todaytags" label="Цвета для тегов">
<field name="repeattable" type="subform" layout="joomla.form.field.subform.repeatable-table"
formsource="/modules/mod_test/repeat.xml" multiple="true"
label="Subform Field" description="Subform Field Description" />
</fieldset>
repeat.xml
@mfd
mfd / Muller.md
Last active June 30, 2023 10:31
Muller font
https://cdn.rawgit.com/mfd/b366b05d1265ec42b852b7b2777d6711/raw/04f2ac0f5dcf790c097148cbe2887e798be9cb28/Muller.css

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

@denysdesign
denysdesign / gist:090d857c58f555fe0af966ec5cd9431f
Last active May 11, 2017 07:46
Joomla! calendar + UIKIT 3
jQuery(document).ready(function () {
// calendar
uikit_jcalendar();
// button
uikit_jcalendar_btn('#news_created_btn', 'uk-button-primary', 'calendar');
uikit_jcalendar_btn('#news_publish_up_btn', 'uk-button-secondary', 'future');
});
// calendar
@Septdir
Septdir / README-ru-RU.md
Last active May 28, 2024 19:16
Joomla - Cleanup after install

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

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

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

  1. Залейте файл cleanup.php в папку administation
  2. Перейдите по адресу https://www.example.com/administrator/cleanup.php
  3. Выберите те раширение которые надо отключить
  4. Нажмите Cleanup
  5. Удалите файл cleanup.php