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'
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'
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'
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' |
#Docker
##Files and Folders.
|
|\_ app
|...
|\_ docker
| |
inherit_from: .rubocop_todo.yml | |
Rails: | |
Enabled: false | |
AllCops: | |
TargetRubyVersion: 2.4 | |
Exclude: | |
- "vendor/**/*" | |
- "db/schema.rb" | |
- "node_modules/**/*" |
AllCops: | |
TargetRubyVersion: 2.4.1 | |
Exclude: | |
- "vendor/**/*" | |
- bin/* | |
Layout/DotPosition: | |
Description: Checks the position of the dot in multi-line method calls. | |
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains | |
Enabled: true | |
EnforcedStyle: leading |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
puma (3.11.4) | |
rails 5.2.0 | |
ruby 2.5 | |
dockerized environment | |
My puma.rb: | |
# Puma can serve each request in a thread from an internal thread pool. | |
# The `threads` method setting takes two numbers: a minimum and maximum. | |
# Any libraries that use thread pools should be configured to match | |
# the maximum value specified for Puma. Default is set to 5 threads for minimum |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |