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
#!sh | |
# Filename: RestoreBackups.sh | |
# Description: This Shell script helps you restore multiple Joomla! site backups created with Akeeba Backup | |
# Author: Carlos Camara www.cmcamara.com | |
# License: GPL v2.0 or later | |
################# | |
# Configuration # | |
################# | |
# |
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
[color] | |
status = auto | |
diff = auto | |
branch = auto | |
interactive = auto | |
ui = true | |
[alias] | |
amend = !"git commit --amend -C HEAD" | |
st = status | |
ci = commit |
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 | |
$mypattern = "([\w-.]+)+(:\d+)?(/([\w/_\-.]*(\?\S+)?)?)?(.*)?"; | |
$pattern = '[a-zA-Z0-9&?_.,=%\-\/#]'; | |
$url = "http://formaciononline.nccextremadura.org#formacion-desempleados"; | |
$newurl = preg_replace('@(https?://'.$pattern.'*)@i', '<a href="$1">$1</a>', $url); | |
//echo "Old URL-> ".$url; | |
//echo "<br/>"; | |
//echo "New URL -> ".htmlspecialchars($newurl); | |
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
//http://stackoverflow.com/questions/23287206/same-height-column-bootstrap-3-row-responsive | |
$( document ).ready(function() { | |
var heights = $(".well").map(function() { | |
return $(this).height(); | |
}).get(), | |
maxHeight = Math.max.apply(null, heights); | |
$(".well").height(maxHeight); | |
}); |
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
# Load images correctly in multilingual for Joomla | |
# This fixes when images are requested as http://www.site.com/en/images/myimage.png | |
# Although the best solution is to add the slash / to your images path: src="/images/myimage.png" in your content | |
RewriteRule ^[a-z]{2}/images/(.*) /images/$1 |
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
youtube-dl --playlist-start 53 --dateafter `date -v-monday +%Y%m%d` -x --audio-format mp3 http://www.youtube.com/playlist?list=PLIcuwIrm4rKeCBZYvueddKTA4yFcHsQqZ | |
count=`ls -1 *.mp3 2>/dev/null | wc -l` | |
if [ $count != 0 ] | |
then | |
mensaje="¡Hay un nuevo programa de Joomgouts listo!" | |
else | |
mensaje="Esta semana no hay programa de Joomgouts :(" | |
fi | |
#Display Apple notification: http://apple.stackexchange.com/questions/57412/how-can-i-trigger-a-notification-center-notification-from-an-applescript-or-shel |
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
## | |
# @author Carlos Cámara <[email protected]> based on the script by freakie guy <[email protected]> | |
# @package Batch Optimize Image for web performance similar to Compressor.io | |
# @requirement jpegoptim, optipng | |
## | |
# | |
# Folder 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
#!sh | |
if [ $# -lt 3 ] | |
then | |
echo "USAGE: [FOLDER in htdocs] [COMPONENT NAME: com_whatever] [REPOSITORY FOLDER]" | |
exit | |
fi | |
SITE="$1" | |
COMPONENT="$2" | |
REPOSITORY="${3}" |
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
### =========================================================================== | |
### Security Enhanced & Highly Optimized .htaccess File for Joomla! | |
### automatically generated by Admin Tools 3.6.8 on 2016-01-15 22:02:05 GMT | |
### Auto-detected Apache version: 2.5 (best guess) | |
### =========================================================================== | |
### | |
### The contents of this file are based on the same author's work "Master | |
### .htaccess", published on http://snipt.net/nikosdion/the-master-htaccess | |
### | |
### Admin Tools is Free Software, distributed under the terms of the GNU |
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 | |
//Set here the Apple ID of your podcast | |
$iTunesId = 1241730868; | |
$countries =["benl","befr","bg","cz","dk","de","ee","es","fr","gr","hr","ie","it","lv","li","lt","lu","mk","hu","mt","md","me","nl","no","at","pl","pt","ro","ru","sk","si","chde","chfr","fi","se","tr","uk","lae","lae","la","lae","lae","lae","la","br","lae","lae","cl","co","la","lae","la","la","la","lae","la","lae","la","lae","mx","lae","la","la","la","la","lae","lae","lae","lae","lae","lae","lae","la","la","la","lae","ca","lae","la",]; | |
$countries = array_unique($countries); | |
foreach ($countries as $country) |
OlderNewer