Migrei o post para meu blog, por favor clique no link abaixo:
http://blog.rafaelrosafu.info/2013/07/16/imigrando-e-vivendo-no-canada-um-guia-nada-imparcial.html
Obrigado aos que deixaram comentários :)
#===================================================== | |
# Personal environment variables and startup programs | |
#===================================================== | |
# If not running interactively, don't do anything | |
# vagrant breaks without this | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
MySQL general security guidelines | |
http://dev.mysql.com/doc/refman/5.0/en/security-guidelines.html | |
Enabling/allowing remote access to mysql | |
http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html | |
http://www.onlinehowto.net/Tutorials/MySQL/How-to-allow-remote-connection-to-MySQL/211 | |
mysqlslap | |
http://dev.mysql.com/doc/refman/5.1/en/mysqlslap.html | |
http://www.jameslittle.me.uk/mysqlslap-for-mysql-50/ |
# Good reference | |
http://en.gentoo-wiki.com/wiki/Convert_latin1_to_UTF-8_in_MySQL | |
## On the original server on Dreamhost | |
# Backup the database, pay special attention to character set | |
mysqldump --user=grokpodcastcom -p --host=mysql.grokpodcast.com --default-character-set=latin1 -c --insert-ignore --skip-set-charset -r dump_grok.sql grokpodcast_com | |
# The sed replaces the WP instance prefix on the database and also it's name | |
sed -i 's/_5cweix_/_/' dump_grok.sql | |
sed -i 's/grokpodcast_com/bitnami_wordpress/' dump_grok.sql | |
# Put dump on S3 (easier than FTP) |
# Avoid problems when running Capybara specs before regular ones, and fix the | |
# "Could not find a valid mapping for X". Part of the solution is to use the | |
# Devise test helpers as explained on link A, but then you need to clear the | |
# fabricated objects, as explained on link B. Here's the equivalent code when | |
# using the Fabrication gem | |
# | |
# A - http://stackoverflow.com/questions/4230152/mocks-arent-working-with-rspec-and-devise | |
# B - http://stackoverflow.com/questions/6363471/could-not-find-a-valid-mapping-for-user-only-on-second-and-successive-t | |
if Rails.env.development? || Rails.env.test? | |
ActionDispatch::Callbacks.after do |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
# precise-cloudimage is an official Ubuntu image at http://cloud-images.ubuntu.com/vagrant/ |
sudo apt-get install libqt4-dev libicu48 xvfb | |
On Gemfile: | |
gem 'jasmine-headless-webkit' | |
On .gitignore: | |
.jhw-cache/ | |
bundle install --path=vendor --binstubs |
Migrei o post para meu blog, por favor clique no link abaixo:
http://blog.rafaelrosafu.info/2013/07/16/imigrando-e-vivendo-no-canada-um-guia-nada-imparcial.html
Obrigado aos que deixaram comentários :)
More info on http://hekad.readthedocs.org/en/latest/installing.html
yum install git gcc patch python-devel
rpm -ihv http://pkgs.repoforge.org/cmake/cmake-2.8.8-1.el6.rfx.x86_64.rpm
git clone [email protected]:mozilla-services/heka-build.git
cd heka-build
apt-get install openssh-server | |
mkdir /var/run/sshd | |
sed -i 's/#AuthorizedKeysFile/AuthorizedKeysFile/' /etc/ssh/sshd_config | |
# run as foreground process | |
/usr/sbin/sshd -D |
# Create a new, non-root user | |
adduser node | |
echo "node ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
su - node | |
# Install git | |
sudo yum install git | |
# Install node.js through nave | |
cd ~ |