Dicas do Dr Psiquiatra Italo Marsili https://www.amelhorfamiliadomundo.com.br/
- Para dar energia e tirar a preguiça
- Melhora sintomas de depressão
- Melhor em pó do que em oleo
- sugestao de marca: Athletica
app/controllers/panel/base_controller.rb | |
# comentar linha abaixo | |
#before_filter :authenticate_user!, :require_account!, :check_if_enabled | |
before_filter :signin, :authenticate_user!, :require_account!, :check_if_enabled | |
#criar metodo abaixo | |
def signin | |
sign_in(User.first) if current_user.nil? | |
end |
## substiuir o conteudo do arquivo admin/base_controller.rb pelo abaixo | |
class Admin::BaseController < InheritedResources::Base | |
extend Memoist | |
layout 'admin' | |
protect_from_forgery | |
before_filter :signin, :authenticate_admin!, :log_action |
#!/bin/sh | |
# | |
# init.d script with LSB support. | |
# | |
# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org> | |
# | |
# This is free software; you may redistribute it and/or modify | |
# it under the terms of the GNU General Public License as | |
# published by the Free Software Foundation; either version 2, | |
# or (at your option) any later version. |
> db.contacts.find({"custom_fields.gender":"fem"}).explain() | |
{ | |
"cursor" : "BasicCursor", | |
"nscanned" : 1002, | |
"nscannedObjects" : 1002, | |
"n" : 244, | |
"indexBounds" : { | |
} | |
} |
153: binding.pry | |
154: | |
=> 155: if result[:success] | |
156: #so apaga arquivo se foi sucesso, caso contrario deixa pra debugar | |
157: delete_import_file(part_number) | |
158: else | |
159: failed! | |
160: end | |
[1] pry(#<ContactImport>)> next |
lalala@coc.com |
{"/home/fabio/workspace/hodor/home/fabio/workspace/provisioning-core": {"attributes": {}, "definitions": []}} |
#!/bin/bash | |
while :; do | |
mem_used="$(free -m | grep Mem | awk '{print$3}')" | |
mem_free="$(free -m | grep Mem | awk '{print$4}')" | |
mem_avail="$(free -m | grep Mem | awk '{print$4}')" | |
logger -t MemWatcher "Used: ${mem_used}. Free: ${mem_free}. Available: ${mem_avail}."; | |
sleep 2; done |
Dicas do Dr Psiquiatra Italo Marsili https://www.amelhorfamiliadomundo.com.br/
# To run: | |
# gem install rspec | |
# rspec mb.rb | |
class Pocket | |
attr_reader :white, :red, :blue, :black, :green | |
InvalidValueForColor = Class.new(StandardError) | |
def initialize(white: 0, red: 0, blue: 0, black: 0, green: 0) |