- Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
- rabl - General ruby templating with json, bson, xml, plist and msgpack support
- Thin - Very fast and lightweight Ruby web server
- Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
- SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
- Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
- [factory_girl](h
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
Dado o projeto principal no gitlab | |
e um projeto qualquer no github | |
1- criar uma chave ssh publica com usuario git aonde o gitlab está instalado. | |
$ su git | |
e depois seguir https://help.github.com/articles/generating-ssh-keys/ | |
PS: Não adicionar passprhase |
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
1- criar um project_cfg | |
2- hieradata em puppet/hieradata/common.yaml | |
3- em hostnmaes abaixo de localhost colocar o ip da maquina | |
4- criar um local settings com o nome do ambiente em src/cola | |
5- em allowed host colocar o ip da maquina | |
6- fab environment:'digitalocean' bootstrap | |
6- fab environment:'digitalocean' depoy |
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
https://www.digitalocean.com/community/tutorials/how-to-install-chef-and-ruby-with-rvm-on-a-ubuntu-vps |
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
Deixa tudo instalado como https://www.digitalocean.com/community/tutorials/how-to-install-chef-and-ruby-with-rvm-on-a-ubuntu-vps | |
gem install chef --no-ri --no-rdoc | |
gem install librarian-chef | |
gem install knife-solo --no-ri --no-rdoc | |
sudo apt-get install libxslt-dev libxml2-dev | |
gem install berkshelf --no-ri --no-rdoc | |
gem install foodcritic --no-ri --no-rdoc | |
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
eu | |
15:08 | |
tentar integrar as partes do mezuro com uma interface mais simples de comunicação | |
Diego Araújo | |
15:09 | |
her | |
eu | |
15:09 |
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
eu | |
18:21 | |
teste | |
ta escutando ? | |
caiu | |
criar outro opener | |
e instalar | |
opener_cookies | |
criar a jar antes | |
na hora de chamar o http_response passar a jar de cookie também |
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
- ativar o plugin do track | |
vim /etc/colab/settings.yml | |
PROXIED_APPS: | |
# gitlab: | |
# upstream: 'http://localhost:8090/gitlab/' | |
# private_token: '' | |
trac: | |
upstream: 'http://localhost:5000/trac/' | |
- criar um database p/ track |
Objeto é a noção de uma entidade que é definida inteiramente pelo seu comportamento. E esse comportamento é dinâmicamente selecionado. Em outras palavras, eu "peço" um objeto para "andar," e como ele vai fazer isso é inteiramente definido pelo objeto.
O exemplo:
objeto.anda()
Captura bem essa idéia. Eu tenho uma mensagem "anda," mas eu não consigo dizer o que essa função faz direto do meu código, porque isso depende no comportamento dinâmico da execução do programa (em uma linguagem estáticamente tipada você consegue optimizar isso, mas o raciocínio do código continua o mesmo).
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 nano /opt/nginx/conf/nginx.conf | |
worker_processes 2; | |
worker_rlimit_nofile 100000; | |
events { | |
worker_connections 768; | |
use epoll; | |
multi_accept on; |