Heroku's docs on this are now the definitive source. I just followed their instructions to update my apps and they're much better than they were when I made this gist. Here's the previous revision if you need still need it. Good luck!
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 Test | |
def hello | |
puts "hello fockers" | |
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
function convertDateTimeSelectTo12Hour() { | |
var translate = {"00":"Midnight","01":"1am","02":"2am","03":"3am","04":"4am","05":"5am","06":"6am","07":"7am","08":"8am","09":"9am","10":"10am","11":"11am","12":"Noon","13":"1pm","14":"2pm","15":"3pm","16":"4pm","17":"5pm","18":"6pm","19":"7pm","20":"8pm","21":"9pm","22":"10pm","23":"11pm"}; | |
$("select[name$='(4i)]'] option").each(function() { | |
$(this).text(translate[$(this).text()]); | |
}); | |
} |
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
# As a general rule, I despise all things SEO with it's witchery and voodoo ways. | |
# However, these two practices are confirmed semi-non-witchcraft SEO best practice. | |
# | |
# 1. Serve your content from a consistent domain (www vs. non-www, Doesn't matter. Just be consistent) | |
# In addition this is nice for Heroku and other cloud based deployment environments that leave your app | |
# accessible from a url like http://myapp.herokuapp.com | |
# | |
# 2. Believe it or not, trailing slashes matter. The google machine interprets http://domain.com/about | |
# as a different page than domain.com/about/ | |
# (source: http://googlewebmastercentral.blogspot.com/2010/04/to-slash-or-not-to-slash.html ) |
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
<div class="social_widgets"> <!-- Keep this nbsp; so TinyMCE doesn't consider this div empty --> | |
<g:plusone size="medium"></g:plusone> | |
<fb:like layout="button_count"></fb:like> | |
</div> |
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
$("#edit").live "click", -> | |
$('.editable').each (i, el) -> | |
input = $('<input/>', | |
id: $(el).attr('id') + '_field' | |
value: $(el).text() | |
) | |
$(el).append(input) |
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
require 'openssl' | |
raise "Patching OpenSSL::Buffering may not be necessary in ruby #{RUBY_VERSION}p.#{RUBY_PATCHLEVEL}" unless RUBY_VERSION == "1.9.2" && RUBY_PATCHLEVEL == 290 | |
# See this issue for more info. | |
# http://bugs.ruby-lang.org/issues/5233 | |
module OpenSSL::Buffering | |
private | |
## |
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
$('#select_list_id').live 'change', -> | |
selectedOptionText = $(this).find("option:selected").text() |
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
newpg=9.6.1 # set to new PG version number | |
oldpg=`pg_config --version | cut -d' ' -f2` | |
# PG 96. upgrades the readline to v7, which breaks anything linked against readline v6, like ruby via ruby-build. | |
# I *think* this should prevent it from installing v7. But if weird shit happens with various rubies, | |
# you'll have to reinstall them. | |
brew pin readline | |
# Stop current Postgres server | |
brew services stop postgresql |
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
###################################################################### | |
# | |
# Photoboof Configuration File | |
# | |
# Use caution when editing manually. | |
# | |
####################################################################### | |
################## |
OlderNewer