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
| mes = 2; | |
| isValidMonth = true; | |
| if(mes < 1){ | |
| console.log('mes tem que ser maior que 1'); | |
| isValidMonth = false; | |
| } | |
| if(mes > 12){ |
| # 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) |
| #!/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/
| {"/home/fabio/workspace/hodor/home/fabio/workspace/provisioning-core": {"attributes": {}, "definitions": []}} |
| #!/bin/sh | |
| set -xe | |
| git checkout master | |
| git fetch | |
| git pull | |
| git branch -r --merged | grep origin | grep -v '>' | grep -v master | xargs -L1 | cut -d"/" -f2- | xargs git push origin --delete || true | |
| git branch --merged | grep -v master | xargs git branch -d || true | |
| git fetch -p |
| ## 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 |
| 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 |
| [email protected] |
| 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 |