A Pen by Rafa Poveda on CodePen.
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
<script> | |
/* Desactivamos el primer panel, y activamos el segundo */ | |
jQuery( document ).ready(function() { | |
jQuery('.tab').eq(0).removeClass('active'); | |
jQuery('.panel').eq(0).removeClass('active'); | |
jQuery('.tab').eq(1).addClass('active'); | |
jQuery('.panel').eq(1).addClass('active'); | |
console.log('terminado'); | |
}); | |
</script> |
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
sh /home/raven/cronjob.sh > /dev/null 2>&1 | |
sh /home/raven/mysqljob.sh > /dev/null 2>&1 |
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/sh | |
cd ~/domains/bi0xid.es/public_html/web/ | |
git add --all | |
git commit -m "copia de seguridad" | |
git push origin master | |
cd ~/domains/darkblue.es/public_html/web/ | |
git add --all | |
git commit -m "copia de seguridad" |
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
mysqldump --single-transaction --user=XXXX --password=XXXX --databases XXXX > /home/raven/backup/incremental/XXXX-$(date +%Y%m%d-%H%M).sql | |
mysqldump --single-transaction --user=XXXX --password=XXXX --databases XXXX > /home/raven/backup/incremental/XXXX-$(date +%Y%m%d-%H%M).sql |
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
mysql -u usuario -pcontraseña base_de_datos < archivo_copia_de_seguridad.sql |
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
mysqldump --single-transaction --user=XXXX --password=XXXX --databases XXXX --ignore-table=wp_options > /home/raven/backup/incremental/XXXX-$(date +%Y%m%d-%H%M).sql | |
mysqldump --single-transaction --user=XXXX --password=XXXX --databases XXXX wp_commentmeta wp_comments wp_postmeta wp_posts wp_term_relationships wp_term_taxonomy wp_terms > /home/raven/backup/incremental/XXXX-$(date +%Y%m%d-%H%M).sql | |
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
P2 Check In http://wordpress.org/extend/plugins/p2-check-in/ | |
Markdown for P2 http://wordpress.org/extend/plugins/markdown-for-p2/ | |
P2 Likes http://wordpress.org/extend/plugins/p2-likes/ | |
P2 Resolved Posts http://wordpress.org/extend/plugins/p2-resolved-posts/ | |
Who's Online http://wordpress.org/extend/plugins/wp-whos-online/ | |
Local Time http://wordpress.org/extend/plugins/localtime/ | |
WP-Email-Notificator http://wordpress.org/extend/plugins/wp-email-notificator/ |
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
<?php | |
add_filter('upload_mimes','add_custom_mime_types'); | |
function add_custom_mime_types($mimes){ | |
return array_merge($mimes,array ( | |
'mp3' => 'audio/mp3' | |
)); | |
} |