This file contains 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
{ | |
"issuer": "accounts.google.com", | |
"authorization_endpoint": "https://accounts.google.com/o/oauth2/auth", | |
"token_endpoint": "https://www.googleapis.com/oauth2/v3/token", | |
"userinfo_endpoint": "https://www.googleapis.com/oauth2/v3/userinfo", | |
"revocation_endpoint": "https://accounts.google.com/o/oauth2/revoke", | |
"jwks_uri": "https://www.googleapis.com/oauth2/v2/certs", | |
"response_types_supported": [ | |
"code", | |
"token", |
This file contains 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
{ | |
"issuer": "https://accounts.google.com", | |
"authorization_endpoint": "https://accounts.google.com/o/oauth2/v2/auth", | |
"token_endpoint": "https://www.googleapis.com/oauth2/v4/token", | |
"userinfo_endpoint": "https://www.googleapis.com/oauth2/v3/userinfo", | |
"revocation_endpoint": "https://accounts.google.com/o/oauth2/revoke", | |
"jwks_uri": "https://www.googleapis.com/oauth2/v3/certs", | |
"response_types_supported": [ | |
"code", | |
"token", |
This file contains 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
## Restart a Heroku Web Application | |
## Adapted from a script by mscottford for restarting workers: https://gist.github.com/2028552 | |
## Instructions: | |
## * Save this script in lib/tasks | |
## * Gemfile: gem 'heroku-api', :git => 'https://github.com/heroku/heroku.rb.git' | |
## * Commit Gemfile* and lib/tasks | |
## * $ heroku config:add APP_NAME='name of the Heroku app' | |
## * $ heroku config:add HEROKU_API_KEY='the API key found on the Heroku "My Account" page' | |
## * Deploy and test with $ heroku run rake heroku:webs:restart[10] (Look at process uptime with $ heroku ps) |
This file contains 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 ActiveSupport | |
module JSON | |
module Encoding | |
class << self | |
# from https://github.com/rails/rails/blob/v3.2.12/activesupport/lib/active_support/json/encoding.rb#L121 | |
def escape(string) | |
if string.respond_to?(:force_encoding) | |
string = string.encode(::Encoding::UTF_8, :undef => :replace).force_encoding(::Encoding::BINARY) | |
end |
NewerOlder