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
| scp ~/.ssh/id_rsa.pub user@server:~/.ssh/authorized_keys |
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
| // server | |
| var net = require("net") | |
| , server | |
| ; | |
| server = net.createServer(function(socket){ | |
| // socket.end("bye\n"); | |
| socket.on("connect", function(){ | |
| console.log("conectou\n"); |
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
| class DealersMailer < ActionMailer::Base | |
| default from: "lucas@nudesign.com.br" | |
| def notify_admin(dealer) | |
| @dealer = dealer | |
| mail :to => "lucas@nudesign.com.br", :subject => "novo revendedor cadastrado" | |
| end | |
| def send_confirmation(dealer) |
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
| //Lucas Renan TP072167 | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <dos.h> | |
| float CalculaPeso(float Altura, float Peso) | |
| { | |
| float Calcula; | |
| Calcula = Peso / (Altura * Altura); |
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
| unless Rails.env.production? | |
| require "rspec/core/rake_task" | |
| namespace :spec do | |
| desc "spec presenters" | |
| Rspec::Core::RakeTask.new(:presenters) do |t| | |
| t.pattern = "./spec/presenters/**/*_spec.rb" | |
| end | |
| end | |
| end |
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 /tmp | |
| wget http://nginx.org/download/nginx-1.3.7.tar.gz | |
| tar zxf nginx-1.3.7.tar.gz | |
| sudo /usr/bin/passenger-install-nginx-module --nginx-source-dir=/tmp/nginx-1.3.7 --prefix=/opt/nginx --auto --extra-configure-flags=--with-http_stub_status_module |
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
| Como é o Lucas em sua vida pessoal? | |
| Quando alguém precisa da ajuda ou quer que o Lucas faça alguma coisa, ele pensa antes de agir. | |
| Veja, ele acredita profundamente na liberdade pessoal e na responsabilidade individual. Lucas | |
| acha que é vital que as pessoas aprendam a cuidar de si mesmas para que não se tornem dependentes | |
| dos outros. Lucas acredita que as ações têm consequências e que as pessoas precisam aceitar as | |
| consequências de suas ações se quiserem aprender com os erros e crescer. Lucas acredita que não | |
| estaria fazendo favor a ninguém se tirar alguém de um problema, eles nunca vão aprender a resolver | |
| seus problemas se o Lucas continuar a salvá-los. Se continuar dando às pessoas uma segunda, terceira, | |
| quarta chance, o Lucas já viu que as pessoas raramente desenvolvem o caráter de que precisam para |
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
| class Person | |
| attr_accessor :name | |
| end | |
| class ReceivePerson | |
| attr_accessor :person | |
| def initialize(person) | |
| self.person = person | |
| end |
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
| module AuthlogicModel | |
| def self.included(model) | |
| model.class_eval do | |
| extend ClassMethods | |
| include InstanceMethods | |
| #include ProtectedAttributes | |
| property :username | |
| property :email | |
| property :crypted_password |
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
| nohup python agent.py > /var/log/mongodb/agent.log 2>&1 & |