This code is no longer needed. Heroku has provided syslog drains for all users for free.
For better Heroku logging with Papertrail, check this out:
http://help.papertrailapp.com/kb/hosting-services/heroku#standalone
| # unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D | |
| rails_env = ENV['RAILS_ENV'] || 'production' | |
| # 16 workers and 1 master | |
| worker_processes (rails_env == 'production' ? 16 : 4) | |
| # Load rails+github.git into the master before forking workers | |
| # for super-fast worker spawn times | |
| preload_app true |
| /* | |
| Requirements: | |
| This script requires the jquery.includeMany plugin and ZeroClipboard. | |
| Example: | |
| $("#elementToClickOn").copyable(function(e, clip) { | |
| clip.setText($("#elementWithText").html()); | |
| }); |
| if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () { | |
| var Storage = function (type) { | |
| function createCookie(name, value, days) { | |
| var date, expires; | |
| if (days) { | |
| date = new Date(); | |
| date.setTime(date.getTime()+(days*24*60*60*1000)); | |
| expires = "; expires="+date.toGMTString(); |
| backend default { | |
| .host = "127.0.0.1"; | |
| .port = "8000"; | |
| } | |
| # We go BACK to varnish to get it to generate an ESI template that | |
| # generates a JSON-P response. | |
| backend jsonp_template_backend { | |
| .host = "127.0.0.1"; | |
| .port = "8070"; |
| // Two ways to serve transparent GIF | |
| var buf = new Buffer([ | |
| 0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01, 0x00, | |
| 0x80, 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x2c, | |
| 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x02, | |
| 0x02, 0x44, 0x01, 0x00, 0x3b]); | |
| res.send(buf, { 'Content-Type': 'image/gif' }, 200); |
| # | |
| # mmm m m mmm mmm mmm mmmmm mmm | |
| # " # "m m m" #" # # " #" "# # # # #" # | |
| # m"""# #m#m# #"""" """m # # # # # #"""" | |
| # "mm"# # # "#mm" "mmm" "#m#" # # # "#mm" | |
| # | |
| # nginx configuration For Ruby/Rack web applications | |
| # | |
| # Cooked up with style, care and a bit of *secret* | |
| # nerdy spice. :-) |
| module Payex | |
| mattr_accessor :account_number | |
| mattr_accessor :encryption_key | |
| MD5_CHECK_FIELDS = { | |
| "pxorder/pxorder.asmx/Initialize7" => [:accountNumber, :purchaseOperation, :price, :priceArgList, :currency, :vat, :orderID, :productNumber, :description, :clientIPAddress, :clientIdentifier, :additionalValues, :externalID, :returnUrl, :view, :agreementRef, :cancelUrl, :clientLanguage], | |
| "pxagreement/pxagreement.asmx/CreateAgreement3" => [:accountNumber, :merchantRef, :description, :purchaseOperation, :maxAmount, :notifyUrl, :startDate, :stopDate], | |
| "pxagreement/pxagreement.asmx/DeleteAgreement" => [:accountNumber, :agreementRef], | |
| "pxorder/pxorder.asmx/Complete" => [:accountNumber, :orderRef], | |
| "pxagreement/pxagreement.asmx/AutoPay2" => [:accountNumber, :agreementRef, :price, :productNumber, :description, :orderId, :purchaseOperation], |
| #!/bin/bash | |
| if [ "$1" = "-h" -o "$1" = "--help" ]; then cat <<EOF | |
| Multi-Firefox Fixer - v0.2 - 4/26/2011 | |
| http://benalman.com/ | |
| Usage: `basename "$0"` | |
| Run this shell script from beside (in the same parent directory as) one or more | |
| Firefox*.app or Aurora*.app applications and it will "fix" those Firefoxes to |
This code is no longer needed. Heroku has provided syslog drains for all users for free.
For better Heroku logging with Papertrail, check this out:
http://help.papertrailapp.com/kb/hosting-services/heroku#standalone
| require "uri" | |
| require "active_support" | |
| # Get auth token from Googles | |
| auth_uri = "https://www.google.com/accounts/ClientLogin" | |
| params = { | |
| "accountType" => "HOSTED_OR_GOOGLE", | |
| "Email" => "yer_gmail", | |
| "Passwd" => "yer_gpass", | |
| "source" => "organization-appname-version", |