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
$ heroku config:set MAGICK_MAP_LIMIT=32MiB | |
Setting MAGICK_MAP_LIMIT and restarting ⬢ radiant-waters-37422... done, v46 | |
MAGICK_MAP_LIMIT: 32MiB | |
$ heroku config:set MAGICK_MEMORY_LIMIT=16MiB | |
Setting MAGICK_MEMORY_LIMIT and restarting ⬢ radiant-waters-37422... done, v47 | |
MAGICK_MEMORY_LIMIT: 16MiB | |
$ heroku run identify -list resource | |
Running identify -list resource on ⬢ radiant-waters-37422... up, run.5905 (Hobby) |
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
$ heroku run identify -list resource | |
Running identify -list resource on ⬢ radiant-waters-37422... up, run.6306 (Hobby) | |
File Area Memory Map Disk Thread Throttle Time | |
-------------------------------------------------------------------------------- | |
7500 128.85GB 60GiB 120GiB unlimited 8 0 unlimited | |
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
# For Rails 3.2.* | |
# | |
if Rails.version =~ /^3.2/ | |
# The call to has_cached_counter? throws an exception on the 3.2.* version of rails. | |
# See https://github.com/rails/rails/issues/18991 | |
ActiveRecord::Associations::HasManyThroughAssociation.class_eval do | |
def size | |
if has_cached_counter?(reflection) | |
owner.send(:read_attribute, cached_counter_attribute_name) | |
elsif loaded? |
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
defaults: &defaults | |
adapter: postgresql | |
host: localhost | |
encoding: unicode | |
pool: 5 | |
username: USERNAME | |
password: | |
template: template0 | |
development: &dev |
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
$(document).ready(function() { | |
$('table.tracks tbody').makeSortable({ url: "<%= sort_my_mix_tracks_path(mix) -%>" }); | |
}); |
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
var link = createElement('a'); | |
link.innerHTML = "This is not a URL"; | |
link.href = "http://flatterline.com"; |
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
var link = document.createElement('a'); | |
link.innerHTML = "http://flatterli..."; | |
link.href = "http://flatterline.com"; |
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
var link = document.createElement('a'); | |
link.href = "http://flatterline.com"; |
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
sudo gem uninstall rack (answer yes to remove dependencies and continue with uninstall) | |
mkdir ~/sources | |
cd ~/sources | |
git clone git://github.com/rack/rack.git | |
cd rack | |
sudo rake gem VERSION=1.0.0 | |
sudo gem install rack-1.0.0.gem |
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
/!\ FAILSAFE /!\ 09/29/09 03:21 | |
Status: 500 Internal Server Error | |
invalid byte sequence in US-ASCII |
NewerOlder