pry -r ./config/app_init_file.rb —— Load your app into a pry session (look at the file loaded by config.ru)
pry -r ./config/environemtn.rb —— Load your rails into a pry session
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
class HelloWorldController < AbstractController::Base | |
include AbstractController::Rendering | |
include AbstractController::Layouts | |
include AbstractController::Helpers | |
include AbstractController::Translation | |
include AbstractController::AssetPaths | |
include ActionController::UrlWriter | |
# Uncomment if you want to use helpers defined in ApplicationHelper in your views | |
# helper ApplicationHelper |
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
Proxy.start(:host => "0.0.0.0", :port => 81) do |conn| | |
conn.server :production, :host => '127.0.0.1', :port => 8080 | |
conn.server :ey_cloud, :host => '204.236.225.141', :port => 81 | |
conn.on_data do |data| | |
data | |
end | |
conn.on_response do |server, resp| | |
resp if server == :production | |
end | |
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
# Configura metadata de los commits | |
git config --global user.name "<name>" | |
git config --global user.email "<email>" | |
# Habilita la útil colorización del producto de la línea de comando | |
git config --global color.ui auto | |
# Agrega una modificación o creación de archivo a Staging | |
git add <file> |
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
noble addressChange d8:bb:2c:bc:94:e5 +0ms | |
yosemite-bindings sendCBMsg: 1, { | |
"kCBMsgArgName": "node-1456372015372", | |
"kCBMsgArgOptions": { | |
"kCBInitOptionShowPowerAlert": 0 | |
}, | |
"kCBMsgArgType": 0 | |
} +5ms | |
yosemite-bindings xpcEvent: { | |
"kCBMsgId": 6, |
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
{ | |
:external_id => "R612629623", | |
:shipping => "STANDARD", | |
:recipient => { | |
:name => "Chris Dey", | |
:address1 => "158 Cove Neck Rd.", | |
:address2 => "", | |
:city => "Oyster Bay", | |
:state_code => "NY", | |
:country_code => "US", |
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
deny from 64.18.0.0/20 | |
deny from 66.102.0.0/20 | |
deny from 64.233.160.0/19 | |
deny from 66.249.80.0/20 |
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
#!/bin/bash | |
# | |
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/ | |
# Adapted to work with the official image available into Mac App Store | |
# | |
# Enjoy! | |
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app | |
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build |
The asset pipeline is implemented by the sprockets-rails
gem, and is enabled by default.
You can disable it while creating a new application by passing the --skip-sprockets
option. This will generate a config/application.rb
with a require to sprockets commented out.
- Concatenate assets into master (.js, .css) files and name them with a SHA256 hash to keep tracking of content changes, improving browser caching management.
- Minification or compression.
OlderNewer