Update e LocalTime São Paulo
sudo apt-get update
sudo dpkg-reconfigure tzdata
/*! | |
* Ext JS Library 3.2.1 | |
* Copyright(c) 2006-2010 Ext JS, Inc. | |
* licensing@extjs.com | |
* http://www.extjs.com/license | |
*/ | |
Ext.ns('Ext.ux.form'); | |
/** |
<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> |
var anchors = document.querySelectorAll('a'); | |
[].forEach.call(anchors, function(e) { | |
e.addEventListener('click', function(evt) { | |
var link = this.href, | |
text = this.innerHTML; | |
// do some amazing stuff here =) | |
console.log(link, text); |
#!/bin/sh | |
# Script para instalação e configuração do Phalcon | MongoDB | |
echo "#####################################################################" | |
echo "#####################################################################" | |
echo "#####################################################################" | |
echo ">>>>>>>>>>>>>>>>>>>>>> Instalando MongoDB >>>>>>>>>>>>>>>>>>>>>>>>>>>" | |
echo "#####################################################################" | |
echo "#####################################################################" |
server { | |
listen 80; | |
server_name laravel.dev; | |
root /var/www/vhosts/laravel.dev/public; | |
index index.html index.htm index.php; | |
charset utf-8; | |
location / { |
.htaccess | |
# Re-direct wp-content/uploads to subdomain | |
RewriteRule wp-content/uploads/(.*) http://uploads.example.com/$1 [R=301,L] | |
wp-config.php | |
// Make sure that we put uploads in the right place | |
update_option( | |
'upload_url_path', | |
'http://uploads.aubreypwd.com' | |
); |
Use this command line: | |
wget -r -nH --cut-dirs=3 -nc --ftp-user=jfc-ftp --ask-password ftp://jfc.bitbakers-kunden.de//htdocs/wp-content/uploads | |
And give the password. Better to use --ask-password so that the password is not saved in the history of the bash |
#!/bin/sh | |
# Corrigir /bin/sh^m bad interpreter no such file or directory | |
# dos2unix *.sh | |
cd /home/proja380/public_html/wp-content/uploads/ | |
caminho=2012 | |
echo 'Compactando pasta '$caminho; |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |