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 para redimesionar imagenes de forma masiva y dejarles calidad en 70 % | |
#!/bin/sh | |
for img in `ls *.jpg` | |
do | |
echo $img | |
mogrify -resize 800x -compress jpeg -quality 70 $img | |
done |
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 sh para cambiar nombre por numeros masivamente | |
#!/bin/sh | |
for img in `ls *.jpg` | |
do | |
echo $img | |
nombre=$[$nombre+1] | |
mv $img $nombre.jpg | |
done |
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 | |
if [ $# -lt 1 ]; then | |
echo "Uso: $0 " | |
exit 1 | |
fi | |
ID=`echo $1 | cut -d= -f2 | cut -d\& -f1` | |
FILE="youtube-${ID}" |
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
import java.io.IOException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import org.apache.log4j.*; | |
/** | |
* | |
* @author e0s87 | |
*/ | |
public class logger { |
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
try { | |
String path = "ruta_donde_repaldar" | |
Runtime r = Runtime.getRuntime(); | |
//PostgreSQL variables | |
String user = "postgres"; | |
String dbase = "base_datos"; | |
String password = "tu_clave"; | |
Process p; | |
ProcessBuilder pb; |
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
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
/** |
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
<context-param> | |
<param-name>org.richfaces.SKIN</param-name> | |
<param-value>blueSky</param-value> | |
</context-param> | |
<filter> | |
<display-name>RichFaces Filter</display-name> | |
<filter-name>richfaces</filter-name> | |
<filter-class>org.ajax4jsf.Filter</filter-class> |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package utils; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.logging.*; |
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
# .bash_profile | |
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
# User specific environment and startup programs | |
export PATH=$HOME/bin:${PATH} |
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 evento in eventos: | |
d = { | |
'id': str(evento.id), | |
'title': str(evento.evento), | |
'start':str(evento.inicio), | |
'end':str(evento.final), | |
'allDay': True, | |
'color':str(evento.user.userprofile.contraparte.font_color) | |
} | |
var.append(d) |
OlderNewer