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 | |
require_once "vendor/autoload.php"; | |
use Doctrine\ORM\Tools\Setup; | |
use Doctrine\ORM\EntityManager; | |
$paths = array("./src/","./metadata/"); | |
$isDevMode = true; |
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
<phpunit | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.7/phpunit.xsd" | |
backupGlobals="true" | |
backupStaticAttributes="false" | |
bootstrap="vendor/autoload.php" | |
cacheTokens="false" | |
colors="true" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" |
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
-- | |
-- CakeSchema Export | |
-- Based on DoctrinExport (http://code.google.com/p/mysql-workbench-doctrine-plugin/) | |
-- | |
-- Testing | |
-- catalog= grtV.getGlobal("/wb/doc/physicalModels/0/catalog") | |
-- CakeSchema:writeToClipboard(catalog) | |
-- | |
-- standard module/plugin functions | |
-- |
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
#------------------------------------------------------------------------------# | |
# OFFICIAL UBUNTU REPOS # | |
#------------------------------------------------------------------------------# | |
###### Ubuntu Main Repos | |
deb http://55.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse | |
deb-src http://55.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse | |
###### Ubuntu Update Repos |
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
set number | |
syntax on | |
colorscheme torte | |
set expandtab | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set autoindent | |
set textwidth=80 |
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
# http://www.cyberciti.biz/tips/bash-aliases-mac-centos-linux-unix.html | |
# https://github.com/curvve/themes/blob/master/NightLion%20themes/OSX%20Terminal/bashrc | |
export TERM="xterm-color" | |
alias ls="ls -lhGa --color=auto" | |
alias ll='ls -la' | |
alias cd..='cd ..' | |
alias mkdir='mkdir -pv' | |
alias ports='netstat -tulanp' |
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
# from http://snipplr.com/view/47652/simple-htaccess-mobile-redirect/ | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$ | |
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] | |
RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302] |
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
Pegar a pasta xhprof e jogar em /var/www | |
1. Install dependencies | |
# aptitude install php5-dev | |
2. Download xhprof source | |
$ cd /tmp | |
$ git clone git://github.com/facebook/xhprof.git | |
3. Install xhprof PHP extension |
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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# All PHP files MUST use the Unix LF (linefeed) line ending. | |
# Code MUST use an indent of 4 spaces, and MUST NOT use tabs for indenting. | |
# All PHP files MUST end with a single blank line. | |
# There MUST NOT be trailing whitespace at the end of non-blank lines. | |
[*] |
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
mkdir demo | |
cd demo | |
wget http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gz | |
wget http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz | |
tar -zxvf magento-1.8.1.0.tar.gz | |
tar -zxvf magento-sample-data-1.6.1.0.tar.gz | |
mv magento-sample-data-1.6.1.0/media/* magento/media/ | |
mv magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql magento/data.sql | |
mv magento/* magento/.htaccess . | |
chmod o+w var var/.htaccess app/etc |
OlderNewer