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 | |
| DOWNLOAD() { | |
| rand="$RANDOM `date`" | |
| pipe="/tmp/pipe.`echo '$rand' | md5sum | tr -d ' -'`" | |
| mkfifo $pipe | |
| wget -c $1 2>&1 | while read data;do | |
| if [ "`echo $data | grep '^Length:'`" ]; then | |
| total_size=`echo $data | grep "^Length:" | sed 's/.*\((.*)\).*/\1/' | tr -d '()'` | |
| fi | |
| if [ "`echo $data | grep '[0-9]*%' `" ];then |
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
| DOWNLOAD() { | |
| rand="$RANDOM `date`" | |
| pipe="/tmp/pipe.`echo '$rand' | md5sum | tr -d ' -'`" | |
| mkfifo $pipe | |
| wget -c $1 2>&1 | while read data;do | |
| if [ "`echo $data | grep '^Length:'`" ]; then | |
| total_size=`echo $data | grep "^Length:" | sed 's/.*\((.*)\).*/\1/' | tr -d '()'` | |
| fi | |
| if [ "`echo $data | grep '[0-9]*%' `" ];then | |
| percent=`echo $data | grep -o "[0-9]*%" | tr -d '%'` |
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 | |
| number_files=0; | |
| size_per_file=''; | |
| level_log=3; | |
| name_file='log'; | |
| ########### | |
| # Options # | |
| ########### |
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 | |
| line=’this “is” a command.this “is” a pattern’ | |
| COMMAND=${line%.*} | |
| PATTERN=${line#*.} | |
| echo $COMMAND | |
| echo $PATTERN |
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
| CREATE OR REPLACE PROCEDURE CEM.send_mail( | |
| sender IN VARCHAR2, | |
| recipient IN VARCHAR2, | |
| ccrecipient IN VARCHAR2, | |
| subject IN VARCHAR2, | |
| message IN VARCHAR2 | |
| )IS | |
| crlf VARCHAR2(2):= UTL_TCP.CRLF; | |
| connection utl_smtp.connection; | |
| mailhost VARCHAR2(30) := 'host'; |
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
| #!/usr/bin/env bash | |
| #file: convImgs.sh | |
| #author: fitorec http://fitorec.wordpress.com | |
| # | |
| #descripcion: Este script lo realize para reducir el tamaño de imgs la | |
| #tecnica es redimencionar y bajar la calidad de 50% en el nivel de compresion | |
| #la imagenes creadas quedaran en una carpeta que se llama mini | |
| # | |
| #Agumentos: recibe como unico argumento la extension de las images a convertir | |
| # |
NewerOlder