For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
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 |
# 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. | |
[*] |
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 |
# ~/.gitconfig | |
# Add this to your global git configuration file | |
# Change phpstorm to webstorm, if you use that. | |
# Diff and merge tool changes | |
# Run `git difftool <directory/file>...` or `git mergetool <directory/file>...` | |
[merge] | |
tool = phpstorm | |
[diff] | |
tool = phpstorm |
# Railscast | |
http://railscasts.com/episodes/308-oh-my-zsh | |
# Install Zsh | |
sudo apt-get update && sudo apt-get install zsh | |
# Install Oh-my-zsh | |
wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh | |
# Make ZSH default shell |
find . -type f | xargs -I {} bash -c "iconv -f utf-8 -t utf-16 {} &>/dev/null || echo {}" > utf8_fail |
#!/bin/bash | |
# Find biggest files from a Git repository | |
# See http://progit.org/book/ch9-7.html | |
MAX_FILES=20 | |
LINES=`git verify-pack -v .git/objects/pack/pack-*.idx | grep blob | sort -k 3 -n | tail -${MAX_FILES}` | |
IFS=$'\n' | |
for LINE in $LINES | |
do |
If you're trying to load a private repository with Composer/Laravel, we'll need to generate a GitHub Personal Access Token (similar to OAuth token) to access the repository during a composer install
without entering credentials.
If you have used other Github packages from
{my-org}
before, you may be able to skip this step.
Click Generate new token.
#!/bin/bash | |
# | |
# Generates client and server certificates used to enable HTTPS | |
# remote authentication to a Docker daemon. | |
# | |
# See http://docs.docker.com/articles/https/ | |
# | |
# To start the Docker Daemon: | |
# | |
# sudo docker -d \ |