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
// 1. Open chrome://settings/passwords | |
// 2. Open chrome developer tools (using F12 or Ctrl+Shift+i) | |
// 3. Run the following code in the console tab | |
// 4. Copy output in a text file and save it somewhere safe! | |
function asyncForEach(array, done, iterator) { | |
var i = 0; | |
next(); | |
function next(err) { | |
if (err) { |
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
# Put this in config/application.rb right before your Application class | |
class Rails::Initializable::Initializer | |
def run_with_logging(*args) | |
app = args.first | |
app.config.logger.warn "Running initializer #{name}\t(#{@context.class.parent})" | |
run_without_logging(*args) | |
end | |
alias_method_chain :run, :logging | |
end |
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
Gemfile.lock | |
examples.txt |
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
#!/usr/bin/env ruby | |
# | |
# Convert VCR cassettes that use basic auth to work with Webmock 2. Takes the folder where the VCR | |
#cassettes are stored as an argument. | |
require 'yaml' | |
require 'base64' | |
require 'uri' | |
require 'vcr' |
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
source 'https://rubygems.org' | |
gem 'activerecord', '~> 3.2.18' | |
gem 'sqlite3', '= 1.3.5' | |
gem 'rspec' |
OlderNewer