Skip to content

Instantly share code, notes, and snippets.

View JFernandezWM's full-sized avatar

Jose C Fernandez JFernandezWM

View GitHub Profile
@JFernandezWM
JFernandezWM / .rubocop.yml
Last active August 1, 2018 16:26
Rubocop config for Rails apps
inherit_from: .rubocop_todo.yml
Rails:
Enabled: false
AllCops:
TargetRubyVersion: 2.4
Exclude:
- "vendor/**/*"
- "db/schema.rb"
- "node_modules/**/*"
@JFernandezWM
JFernandezWM / ruby_on_rails_deployment.md
Created July 26, 2018 01:50 — forked from zentetsukenz/ruby_on_rails_deployment.md
Deploy Ruby on Rails application with Docker Compose and Capistrano with ease

#Docker

##Files and Folders.

|
|\_ app
|...
|\_ docker
| |
@JFernandezWM
JFernandezWM / gist:d2e0e31afe8f9681612f05c578d94e01
Last active February 25, 2021 14:27
Update to factory bot shell scripts for Mac that actually work...
find . -type f -name '*.rb' -exec sed -i '' s/FactoryGirl/FactoryBot/ {} +
find . -type f -name '*.rb' -exec sed -i '' s/factory_girl/factory_bot/ {} +
This:
from https://github.com/thoughtbot/factory_bot_rails/issues/247
grep -rl 'FactoryGirl' ./ | xargs sed -i '' 's/FactoryGirl/FactoryBot/g'
@JFernandezWM
JFernandezWM / sequel-tinytds-mssql-example.md
Created June 13, 2018 18:53 — forked from albertico/sequel-tinytds-mssql-example.md
A sample script for connecting to MS SQL Server database using Sequel ORM with the TinyTDS adapter.

Ruby Sequel TinyTDS MS SQL Example

A sample script for connecting to MS SQL Server database using Sequel ORM with the TinyTDS (FreeTDS) adapter.

#!/usr/bin/env ruby

require 'sequel'
require 'tiny_tds'
@JFernandezWM
JFernandezWM / sequel-tinytds-mssql-example.md
Created June 13, 2018 18:53 — forked from albertico/sequel-tinytds-mssql-example.md
A sample script for connecting to MS SQL Server database using Sequel ORM with the TinyTDS adapter.

Ruby Sequel TinyTDS MS SQL Example

A sample script for connecting to MS SQL Server database using Sequel ORM with the TinyTDS (FreeTDS) adapter.

#!/usr/bin/env ruby

require 'sequel'
require 'tiny_tds'