This file contains hidden or 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
| ###### INSTALL GIT | |
| apt-get install git | |
| ###### INSTALL MYSQL | |
| apt-get install mysqld-server | |
| apt-get install libmysqld-dev | |
| mysql -u root -proot | |
| ###### INSTALL REDIS | |
| apt-get install redis-server |
This file contains hidden or 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
| .bashrc, .bash_profile, .zshrc | |
| alias status='git status' | |
| alias logdiff='git log -p' | |
| alias log='git log --decorate' | |
| alias pull='git pull' | |
| alias push='git push' | |
| alias commit='git commit' | |
| alias add='git add' | |
| alias checkout='git checkout' | |
| alias branch='git branch' |
This file contains hidden or 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
| #Matcher included_in | |
| #my test | |
| it "quando sortear, gravar os vencedores" do | |
| concorrentes = Concorrente.where(:sorteio_id => @sorteio.id) | |
| @sorteio.sortear | |
| @sorteio.vencedores.should included_in(concorrentes) | |
| end | |
| #spec/support/spec_array_helper.rb |
This file contains hidden or 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
| cd ~/forteschat3/oraculo | |
| git stash | |
| git pull | |
| rvm use ruby-1.9.2-p290@oraculo | |
| gem list | |
| bundle | |
| rake db:migrate | |
| rspec | |
| cd ~/forteschat3 | |
| forever stopall |
This file contains hidden or 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
| export JAVA_HOME=/usr/lib/jvm/java-6-openjdk | |
| cd ~/bedel | |
| git stash | |
| git pull | |
| rvm use 1.9.2 | |
| rvm gemset use bedel | |
| bundle | |
| rake db:migrate | |
| rake spec |
This file contains hidden or 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
| Cucumber | |
| gem 'cucumber' | |
| gem 'cucumber-rails' | |
| rails generate cucumber:install pt-BR | |
| cucumber --i18n help | |
| cucumber --i18n pt |
This file contains hidden or 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
| wget http://apache.mirror.pop-sc.rnp.br/apache/activemq/apache-activemq/5.6.0/apache-activemq-5.6.0-bin.tar.gz | |
| tar zxvf apache-activemq-5.6.0-bin.tar.gz | |
| #Opcional: Change activemq for a place more appropriate | |
| sudo mv apache-activemq-5.6.0 /usr/local/activemq | |
| cd [activemq_install_dir]/bin | |
| chmod 755 activemq | |
| #Automatic Starting | |
| sudo vi /etc/init.d/activemq |
This file contains hidden or 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
| ANYCLASS.any_instance.stub(:METHOD) do |METHOD_PARAM| | |
| INSTANCE_ANYCLASS = ANYCLASS.__recorder.instance_that_received(:METHOD) | |
| end | |
| # See docs: | |
| # AnyInstance => http://rubydoc.info/github/rspec/rspec-mocks/RSpec/Mocks/AnyInstance | |
| # Recorder => http://rubydoc.info/github/rspec/rspec-mocks/RSpec/Mocks/AnyInstance/Recorder |
This file contains hidden or 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
| gem install cocoapods | |
| cd PastaDoProjeto | |
| mate Podfile | |
| platform :ios | |
| dependency 'AFNetworking', '0.9.1' | |
| dependency 'JSONKit', '1.4' | |
| pod setup | |
| pod install | |
| pod install GetGlue.xcodeproj | |
| open . |
This file contains hidden or 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
| sudo passwd postgres | |
| su postgres | |
| psql | |
| alter user postgres with password 'foo'; | |
| \q |