Skip to content

Instantly share code, notes, and snippets.

View julienV's full-sized avatar

Julien Vonthron julienV

View GitHub Profile
@julienV
julienV / checkNIR
Last active September 24, 2021 06:35
Validation de numéro de sécurité sociale (NIR) en php
<?php
/**
* Verifie un numero de securite sociale
*
* @param string $numeroSecu
*
* @return bool
*/
static public function checkNIR(string $numeroSecu): bool
{
@julienV
julienV / cb_export.xml
Last active October 23, 2018 11:20
update site for cb_export
<?xml version="1.0" encoding="utf-8"?>
<updates>
<update>
<name>CB Export</name>
<description>CB Export Component !</description>
<element>com_cb_export</element>
<type>component</type>
<version>1.0.1</version>
<infourl title="Tracks">https://www.jlv-solutions.com</infourl>
@julienV
julienV / gist:f19aebcb32ef2b02af500f5d7fb7bc8a
Last active March 29, 2022 11:43
docker-compose.yml for php 5.4
version: '2'
services:
web:
image: "alterway/php:5.4-apache"
ports:
- "8080:80"
volumes:
- .:/var/www/html
environment:
PHP_php5enmod: 'memcached xdebug mysql mysqli pdo_mysql gd'
@julienV
julienV / gist:f933f9bd83defd05954d29983b33e79c
Last active June 19, 2018 06:44
git list last commits per branch
slog = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
rlog = log --pretty=format:' * %d %s' --abbrev-commit
lastcommits = for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(authorname) %(refname)'
@julienV
julienV / tracks-update.xml
Last active February 27, 2022 11:54
Update file for tracks
<?xml version="1.0" encoding="utf-8"?>
<updates>
<update>
<name>Tracks</name>
<description>Tracks Component !</description>
<element>com_tracks</element>
<type>component</type>
<version>3.0.19.3</version>
<infourl title="Tracks">https://jlv-solutions.com/products/tracks</infourl>
@julienV
julienV / gist:7805612
Created December 5, 2013 14:03
How to allow template override for your extension image files in joomla (media/com_mycomponent/images/). just put the image to override in templates/<template>/images/com_mycomponent/
$img = JHTML::image('com_mycomponent/my_image.png',
JText::_('COM_MYCOMPONENT_MY_IMAGE_ALT'),
array('class' => 'myimg'),
true);