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 | |
OUTPUT_PATH='~/app/webroot/files/depoimentos/flv' | |
MOVIES_PATH='~/app/webroot/files/depoimentos/videos' | |
ORIGINAL_PATH='~/app/webroot/files/depoimentos/videos_originais' | |
cd $MOVIES_PATH | |
for filename in *.* | |
do | |
if [ -e $filename ]; then |
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
function excerpt_count_js(){ | |
if ('page' != get_post_type()) { | |
echo '<script>jQuery(document).ready(function(){ | |
jQuery("#postexcerpt .handlediv").after("<div style=\"position:absolute;top:12px;right:34px;color:#666;\"><small>Excerpt length: </small><span id=\"excerpt_counter\"></span><span style=\"font-weight:bold; padding-left:7px;\">/ 500</span><small><span style=\"font-weight:bold; padding-left:7px;\">character(s).</span></small></div>"); | |
jQuery("span#excerpt_counter").text(jQuery("#excerpt").val().length); | |
jQuery("#excerpt").keyup( function() { | |
if(jQuery(this).val().length > 500){ | |
jQuery(this).val(jQuery(this).val().substr(0, 500)); |
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 | |
// DATABASE | |
define('DB_NAME', getenv('DB_NAME')); | |
define('DB_USER', getenv('DB_USER')); | |
define('DB_PASSWORD', getenv('DB_PASS')); | |
define('DB_HOST', getenv('DB_HOST')); | |
define('DB_CHARSET', 'utf8'); | |
define('DB_COLLATE', 'utf8_general_ci'); |
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 | |
// DATABASE | |
define('DB_NAME', getenv('DB_NAME')); | |
define('DB_USER', getenv('DB_USER')); | |
define('DB_PASSWORD', getenv('DB_PASS')); | |
define('DB_HOST', getenv('DB_HOST')); | |
define('DB_CHARSET', 'utf8'); | |
define('DB_COLLATE', 'utf8_general_ci'); |
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 | |
# AUTHOR: JUNIO VITORINO | jgvitorino@gmail.com | |
# DESCRIPTION: DAILY CLONE CLIENTES PARTITION AND SAVE COMPRESSED IMAGE IN AN EXTERNAL HARD DISK (USB) | |
# DATE: NOVEMBER 20, 2014 | |
rm -rf /backup/*.gz | |
now=$(date +"%m_%d_%Y") | |
dd if=/dev/sda5 conv=sync,noerror bs=1K | gzip -c > "/backup/dd_image_clientes_$now.gz" |
NewerOlder