simple mercadopago error handling in pt_BR
- php usage getMpErrorCode('209');
- js usage getMpErrorCode(209);
| RewriteEngine on | |
| RewriteBase "/" | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.*)\.html$ $1.php?%{QUERY_STRING} [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^.*$ index.php [L] | |
| find . -type d -exec chmod 755 {} \; | |
| find . -type f -exec chmod 644 {} \; |
| <?php | |
| /** | |
| * Create a web friendly URL slug from a string. | |
| * | |
| * Although supported, transliteration is discouraged because | |
| * 1) most web browsers support UTF-8 characters in URLs | |
| * 2) transliteration causes a loss of information | |
| * | |
| * @author Sean Murphy <sean@iamseanmurphy.com> | |
| * @copyright Copyright 2012 Sean Murphy. All rights reserved. |
| usernames=('usr1' 'usr2') | |
| for i in ${usernames[*]}; do /scripts/pkgacct $i; done; |
Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.
As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.
apt-get update
apt-get install python-minimal
python --version
apt-get install git-core
git --version
| # nginx configuration by winginx.com | |
| location / { | |
| if ($script_filename !~ "-d"){ | |
| rewrite ^/([a-zA-Z0-9-]+)$ /$1.php break; | |
| } | |
| } | |
| location /l { | |
| rewrite ^/l/([a-zA-Z0-9/]+)$ /l.php?i=$1 break; |