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
| rvm --create --rvmrc use ruby-1.9.2-p290@<PROJETO> |
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
| Loading rake tasks and generators | |
| If your railtie has rake tasks, you can tell Rails to load them through the method ::rake_tasks: | |
| class MyRailtie < Rails::Railtie | |
| rake_tasks do | |
| load "path/to/my_railtie.tasks" | |
| end | |
| end | |
| By default, Rails load generators from your load path. However, if you want to place your generators at a different location, you can specify in your Railtie a block which will load them during normal generators lookup: |
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
| #Create Gem Structure | |
| bundle gem yourgem | |
| #RubyGems Manager | |
| gem install gemcutter | |
| #Build Gem | |
| gem build yourgem.gemspec | |
| #Publish Gem |
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
| git remote add origin [email protected]:fortesinformatica/jasper_rails.git | |
| git push -u origin master |
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
| ########################################################### | |
| # A startup item has been generated that will aid in | |
| # starting postgresql84-server with launchd. It is disabled | |
| # by default. Execute the following command to start it, | |
| # and to cause it to launch at startup: | |
| # | |
| # sudo port load postgresql84-server | |
| ########################################################### | |
| ---> Installing postgresql84-server @8.4.11_0 |
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
| #!/bin/bash | |
| echo -n "PostgreSQL 9.1 " | |
| action=$1 | |
| if [ -z $1 ] | |
| then | |
| action='start' | |
| fi | |
| echo "${action}ing" |
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 |
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
| 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
| 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 |