This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Luego mis busquedas por numero de documento seran como esto: | |
SELECT * FROM sas.viw_auditoria_num | |
WHERE numero_doc='26' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Actualizacion de Iceweasel en Debian Squeeze | |
# | |
echo "deb http://backports.debian.org/debian-backports squeeze-backports main">/etc/apt/sources.list | |
echo "deb http://mozilla.debian.net/ squeeze-backports iceweasel-release">/etc/apt/sources.list | |
wget -O- -q http://mozilla.debian.net/archive.asc | gpg --import | |
gpg --export -a 06C4AE2A | sudo apt-key add - | |
aptitude update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script que lee y almacena las estadísticas de béisbol (pitcheo y bateo) de la página de la LVBP | |
# William Yanez - @wryanez | |
# Actualizado a Enero 2013 | |
# Publicado y distribuido libremente bajo licencia GPL | |
require 'nokogiri' | |
require 'net/http' | |
require 'date' | |
# Columnas de cada estadistica bateo y pitcheo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
Element.prototype.html = function (value){ | |
if (value){ | |
this.innerHTML=value; | |
} | |
else { | |
return this.innerHTML; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MiModulo\Controller; | |
use Zend\Mvc\Controller\AbstractActionController; | |
use Zend\View\Model\ViewModel; | |
class MyController extends AbstractActionController | |
{ | |
public function indexAction() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application; | |
// se omiten los primeros use | |
use Zend\Log\Writer\FirePhp, | |
Zend\Log\Writer\FirePhp\FirePhpBridge, | |
Zend\Log\Writer\Stream, | |
Zend\Log\Logger; | |
class Module |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function recount(){ | |
c = 0; | |
fieldset = $('form > fieldset '); | |
$.each( fieldset.children('fieldset'), function(){ | |
$.each( $(this).children('[name]'), function(){ | |
name = $(this).attr('name'); | |
newname = name.replace(/\[\d+\]/g, '['+$c+']'); | |
$(this).attr('name',newname); | |
console.log('name '+name+' -> '+newname); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in `ls *.JPG`; do mv $f ${f%JPG}jpg; done; | |
#Using Parameter Expansion ${f%...} see http://mywiki.wooledge.org/BashFAQ/073 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Descargamos el JRE: | |
http://java.com/en/download/linux_manual.jsp | |
Instalamos: | |
$ sudo tar xvzf jre-7u45-linux-i586.tar.gz -C /usr/lib/jvm/ | |
$ sudo chown root: /usr/lib/jvm/jre1.7.0_45/ -R | |
$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0_45/bin/java 0 | |
$ sudo update-alternatives --config java | |
Existen 2 opcioens para la alternativa java (que provee /usr/bin/java). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Scripts de Instalacion de Paquetes para Ubuntu 13.04 | |
# William Yanez - | |
# | |
# Creado 26/06/11 | |
# Actualizado al 31/01/2012 (Ubuntu 11.10) | |
# Actualizado al 12/02/2013 (Ubuntu 12.04) | |
# Actualizado al 03/06/2013 (Ubuntu 13.04) | |
####################### FUNCIONES DE INSTALACION ############################### |