Skip to content

Instantly share code, notes, and snippets.

View Itaqua's full-sized avatar

Octavio Luna Itaqua

View GitHub Profile
@Itaqua
Itaqua / gist:8c06f5fc853db08ae9c0
Created July 21, 2014 17:26
isJQueryVersionAtLeast: Permite ver si una version es al mayor o igual que una minima definida
function isJQueryVersionAtLeast(mayor, minor, fix){
var minVersion = [mayor,minor, fix];
var currVersion = $.map($.fn.jquery.split('.'), function(item, index){
return parseInt(item);
});
return currVersion[0] > minVersion[0] ||
(currVersion[0] == minVersion[0] &&
(currVersion[1] > minVersion[1] ||
@Itaqua
Itaqua / log4j para play
Last active December 31, 2015 04:19
log4j exaple to use with Play1.x production enviroments and asteriskjava
#log to console (mainly for debug)
log4j.rootLogger=ERROR, Console
#Log only to File
#log4j.rootLogger=ERROR, Rolling
log4j.logger.play=INFO
log4j.logger.org.asteriskjava=ERROR
#log4j.logger.org.asteriskjava.manager.internal.ManagerReader=DEBUG
#log4j.logger.org.asteriskjava.manager.internal.ManagerReaderImpl=DEBUG
@Itaqua
Itaqua / play_centos_init.sh
Last active December 16, 2018 15:52 — forked from THemming/gist:2173037
init.d script to launch Play framework under CentOS/RedHat
#!/bin/bash
# chkconfig: 345 84 80
# description: Play start/shutdown script
# processname: play
#
# author: Octavio Luna
# email: [email protected]
#
# Instalation:
# copy file to /etc/init.d
@Itaqua
Itaqua / play_ubuntu_init.sh
Created October 10, 2012 14:34 — forked from bihe/init.d play
init.d script to launch Play framework under Ubuntu
#!/bin/bash
# Nov. 2012
# Octavio Luna & Arturo Lopez
### BEGIN INIT INFO
## END INIT INFO
# Launch play 1.x as a service
# Install
# sudo update-rc.d play_ubuntu_init.sh defaults 80
#