For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2
gem errors on MacOS Mojave.
Make sure openssl
is installed on Mac via Homebrew.
# Step 1 - Collect reference images of reading cats | |
# | |
# This script extracts the URLs of all the cats on meow-reader-blog.tumblr.com | |
# | |
# INPUT: Tumblr API | |
# OUTPUT: JSON file of image URLS (meow-reader-images.json) | |
require 'net/http' | |
require 'json' | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log info; | |
pid /var/run/nginx.pid; | |
events { worker_connections 1024; } | |
http { | |
default_type text/html; | |
log_format main '$remote_addr -> $request $status $body_bytes_sent bytes -> $upstream_addr'; | |
access_log /var/log/nginx/access.log main; |
" </div>" | |
" })();\r\n" | |
" && " | |
" & " | |
" " | |
" ''The " | |
" ("" | |
" (199" | |
" (200" | |
" (e.g." |
AWS.config(access_key_id: ENV['AWS_ACCESS_KEY_ID'], | |
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] ) | |
S3_BUCKET = AWS::S3.new.buckets[ENV['S3_BUCKET']] |
# if you want to monkey patch every controller, put this in initializers/active_admin.rb | |
ActiveAdmin::ResourceController.class_eval do | |
include ActiveAdmin::CSVStream | |
end |
StandardError | |
SQLite3::Exception | |
SQLite3::MemoryException | |
SQLite3::LockedException | |
SQLite3::BusyException | |
SQLite3::AbortException | |
SQLite3::PermissionException | |
SQLite3::InternalException | |
SQLite3::SQLException | |
SQLite3::NotADatabaseException |
#!/usr/bin/env ruby | |
# vim: set syntax=ruby | |
# Ensures that changes to the Rails schema.rb file may only be committed if a | |
# migration file is also committed at the same time. | |
def schema_modified? | |
%x[ git diff --cached |grep schema.rb ] == '' | |
end |