View redimensionar-y-marca-de-agua.sh
This file contains 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
sips -Z 960 *.jpg | |
find . -name "*.jpg" -type f -exec composite -gravity southeast -quality 100 -dissolve 30% /path/to/logo.png {} {} \; |
View imagenesDelBlog.sh
This file contains 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 | |
#title :imagenesDelBlog.sh | |
#description :Este script prepara las imagenes antes de subirlas al Blog. | |
#author :Sergio Bellver Aliaga | |
#date :20140701 | |
#version :0.1 | |
#usage :sh imagenesDelBlog.sh /ruta/del/directorio NombreDeLaEntrada_ | |
cd $1 | |
sips -Z 960 *.jpg |
View imagenesDelBlog.sh
This file contains 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 | |
#title :imagenesDelBlog.sh | |
#description :Este script prepara las imagenes antes de subirlas al Blog. | |
#author :Sergio Bellver Aliaga | |
#date :20140701 | |
#version :0.2 | |
#usage :sh imagenesDelBlog.sh /ruta/del/directorio NombreDeLaEntrada_ | |
cd $1 | |
jhead -autorot *.jpg |
View usb_bootable_from_osx.sh
This file contains 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
#Vamos donde tenemos la imagen en ISO | |
cd /ruta/origen | |
#Convertimos la imagen de ISO a IMG | |
hdiutil convert -format UDRW -o Destino.img Origen.iso | |
#Si nos añade la extensión DMG, la eliminamos | |
mv Destino.img.dmg Destino.img | |
#Listamos los discos que tenemos para saber en que ruta tenemos el USB |
View qtdesigner.sh
This file contains 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 | |
# Es necesario pasarle el directorio como parámetro. | |
for f in $1/*.ui | |
do | |
echo "Abriendo $f ..." | |
open -a /Applications/eneboo/bin/designer.app --args $f | |
read -p "Pulse enter para pasar al siguiente UI ... " | |
done |
View eneboo-iconos.sh
This file contains 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
# Cambia los iconos de todos los ui en el directorio y subdirectorios pasado como parámetro | |
eneboo-uiimage theme ~/git/eneboo-tools/themes-uiimage/master_plane.ui $1 overwrite |
View limpia_postres_a_mysql.php
This file contains 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> | |
<title>Limpia los insert para pasar de Postgres a Mysql</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<? | |
$str = "Cadena de Insert a cambiar"; | |
$str = str_replace("\xe2\x80\x8b", '', $str); | |
$str = str_replace("\xCC\x81n", '', $str); |
View add_customcss_functions.php
This file contains 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
<? //REMOVE PHP ENTRY | |
add_action('genesis_meta','genesis_custom_css'); | |
function genesis_custom_css() { | |
if (is_page(23)) echo '<link rel="stylesheet" href="'.get_stylesheet_directory_uri().'/css/azul.css" type="text/css" media="screen" />'.""; //PAGE ID 23 | |
if (is_page(21)) echo '<link rel="stylesheet" href="'.get_stylesheet_directory_uri().'/css/gris.css" type="text/css" media="screen" />'.""; //PAGE ID 21 | |
} | |
View gitstatus.sh
This file contains 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
# It's part from my bash_profile | |
function gitstatus { | |
REPOS=( /route/repo /route/repo2 /route/repo3) | |
for R in "${REPOS[@]}"; do | |
echo "Comprobando repo $R." | |
pushd "$R" >/dev/null && { | |
git status | |
popd >/dev/null |
View gitpull.sh
This file contains 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
# It's part from my bash_profile | |
function gitpull { | |
REPOS=( /route/repo /route/repo2 /route/repo3 ) | |
for R in "${REPOS[@]}"; do | |
echo "Actualizando repo $R." | |
pushd "$R" >/dev/null && { | |
git pull | |
popd >/dev/null |
OlderNewer