I hereby claim:
- I am rafaelrosafu on github.
- I am rafaelrosafu (https://keybase.io/rafaelrosafu) on keybase.
- I have a public key whose fingerprint is 1BF4 D4F7 E3EE AEEA 36AF 2D76 0E8D EC06 77F1 6DD1
To claim this, I am signing this object:
source ~/.bash/system | |
PREFIX="${debian_chroot:+($debian_chroot)}${BGreen}${Username}${BBlue}@${Color_Off} ${IBlack}${Time24h}${Color_Off} " | |
SUFFIX="${BYellow}${PathShort}${Color_Off}" | |
PROMPT_ORDER=(window_title vcs_pre PREFIX virtualenv vcs_prompt SUFFIX PromptSymbol Space) |
#!/bin/sh | |
# This script can be run by: | |
# curl <raw text URL> | sh | |
# Installing basic packages | |
sudo apt-get install -y python-pip python-dev build-essential ipython-notebook | |
sudo pip install --upgrade pip | |
sudo pip install --upgrade virtualenv |
I hereby claim:
To claim this, I am signing this object:
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 |
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 git@github.com: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 |