Skip to content

Instantly share code, notes, and snippets.

@jansanchez
jansanchez / gist:7893091
Last active June 10, 2021 06:56
MySQL lower case table names sensitive in linux

MySQL lower case table names sensitive in linux

Type in your terminal

sudo vim /etc/mysql/my.cnf

Edit the file adding the entry lower_case_table_names=1 just under the group definition: [mysqld]

@jansanchez
jansanchez / gist:8531593
Last active January 3, 2016 22:59
generar archivo comprimido .tar.gz incluyendo sus rutas de acceso

Comprimir archivos incluyendo sus rutas de acceso

Compress

tar -zcvf nombreDelArchivo.tar.gz public/js/modules/all.js frontend/js/application/yoson.js

UnCompress

/**
* Descripcion del Modulo
* @submodule nombre-del-modulo
* @main empresas
* @author Jan Sanchez
*/
yOSON.AppCore.addModule('nombre-del-modulo', function(Sb) {
var afterCatchDom, catchDom, changeFile, clearFields, collection, defaults, dom, st, submitFiles, suscribeEvents;
st = {};
dom = {};
@jjhoncv
jjhoncv / jade and object and array and PHP.jade
Last active October 26, 2017 10:59
Gits help to how to pass and array of objects to jade or multiline object jade also integration jade with php also jade with html
//- Is only jade with var text type
- var list = []
- list.push({status: "active", text: "option 1"})
- list.push({status: "", text: "option 2"})
- list.push({status: "", text: "option 3"})
each(item, index in list)
li(class="#{item.status}")
a= item.text