Skip to content

Instantly share code, notes, and snippets.

View paulorodriguesxv's full-sized avatar

Paulo Leonardo Vieira Rodrigues paulorodriguesxv

View GitHub Profile
@paulorodriguesxv
paulorodriguesxv / BNgyJz.markdown
Last active August 29, 2015 14:27
Paulo Rodrigues's Portfolio
["Life isn’t about getting and having, it’s about giving and being.", "Kevin Kruse"]
["Whatever the mind of man can conceive and believe, it can achieve.", "Napoleon Hill"]
["Strive not to be a success, but rather to be of value.", "Albert Einstein"]
["Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.", "Robert Frost"]
["I attribute my success to this: I never gave or took any excuse.", "Florence Nightingale"]
["You miss 100% of the shots you don’t take.", "Wayne Gretzky"]
["I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed.", "Michael Jordan"]
["The most difficult thing is the decision to act, the rest is merely tenacity.", "Amelia Earhart"]
["Every strike brings me closer to the next home run.", "Babe Ruth"]
["Definiteness of purpose is the starting point of all achievement.", "W.
@paulorodriguesxv
paulorodriguesxv / #FreeCodeCamp - Zipline: Build a Pomodoro Clock.markdown
Created August 23, 2015 17:47
#FreeCodeCamp - Zipline: Build a Pomodoro Clock
@paulorodriguesxv
paulorodriguesxv / Zipline: Use the Twitchtv JSON API.markdown
Created August 23, 2015 19:37
Zipline: Use the Twitchtv JSON API
@paulorodriguesxv
paulorodriguesxv / Zipline: Build a JavaScript Calculator.markdown
Created November 2, 2015 17:27
Zipline: Build a JavaScript Calculator
@paulorodriguesxv
paulorodriguesxv / secret_key_base
Created July 11, 2016 23:27 — forked from pablosalgadom/secret_key_base
app error: Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml` (RuntimeError)
So i was using Rails 4.1 with Unicorn v4.8.2 and when i tried to deploy my app it doesn't start properly and into the unicorn.log file i found this error message:
"app error: Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml` (RuntimeError)"
After a little research i found that Rails 4.1 change the way to manage the secret_key, so if we read the secrets.yml file located at exampleRailsProject/config/secrets.yml (you need to replace "exampleRailsProject" for your project name) you will find something like this:
# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@paulorodriguesxv
paulorodriguesxv / Benchmark report
Last active November 13, 2017 13:00
Nama First Quest
Finished in 0.002514 seconds.
------------------------------------------------------------------------------------------------------------------------
3 tests, 3 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
------------------------------------------------------------------------------------------------------------------------
1193.32 tests/s, 1193.32 assertions/s
c:\temp\ruby>ruby first_quest.rb
user system total real
0.000000 0.000000 0.000000 ( 0.000069)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.