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 fp in `ls -A *.php`; do sed -e 's/oldemail/newemail/g' -i $fp; 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
# Para Archivos | |
find . -type f -print0 | xargs -0 chmod 644 | |
# Para carpetas | |
find . -type d -print0 | xargs -0 chmod 755 |
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
/** | |
* Return a QR Code | |
*/ | |
function get_the_QRcode($postID = 0, $size ='150', $evLevel='L', $margin='0') | |
{ | |
global $post; | |
if ( is_null($postID) ) { | |
$postID = $post->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
<?php | |
add_filter('pre_get_posts', 'init_category'); | |
function init_category($wp_query) | |
{ | |
$vars = $wp_query->query_vars; | |
if (is_category() && !array_key_exists('portfolio', $vars)) { | |
$vars = array_merge( $vars, array('post_type' => 'any') ); |
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
<p> | |
<label for="m2">Metros cuadrados</label> | |
<input type="text" id="m2" name="m2" value="<?php echo $m2 ?>" /> | |
</p> | |
<p> | |
<label for="construido">Superficie construida</label> | |
<input type="text" id="construido" name="construido" value="<?php echo $construido ?>" /> | |
</p> |
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
<table class="form-table"> | |
<tr class="form-field"> | |
<th><label for="category_color">Category color</label></th> | |
<td> | |
<input id="category_color" type="text" name="category_color" value="<?php echo $current_color ?>" /> | |
<span class="description"> | |
Category Color.</span> | |
</td> | |
</tr> |
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 | |
add_action('pre_get_posts', '_custom_search'); | |
function _custom_search() | |
{ | |
global $wp_query; | |
if ( $wp_query->query_vars['post_type'] != REALTY_POST_TYPE || | |
!$wp_query->is_post_type_archive ) { | |
return false; |
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
defaults write com.apple.desktopservices DSDontWriteNetworkStores true |
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
# git is my username | |
chmod g-w /share/HDA_DATA/git | |
chmod 700 /share/HDA_DATA/git/.ssh | |
chmod 600 /share/HDA_DATA/git/.ssh/authorized_keys |
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
<a class="twitter-timeline" href="https://twitter.com/search?q=%23EmergenciasGuerrero" data-widget-id="380380757929119744">Tweets about "#EmergenciasGuerrero"</a> | |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> |
OlderNewer