Skip to content

Instantly share code, notes, and snippets.

View tyler-boyd's full-sized avatar

Tyler Boyd tyler-boyd

  • TradeRev
  • Toronto, ON
View GitHub Profile
@ianneub
ianneub / example.rb
Created December 9, 2012 02:56
Shopify API tweak to easily paginate API calls
ShopifyAPI::Customer.find_all do |customer|
# do something with the customer
end
ShopifyAPI::Order.find_all(:status => :any) do |order|
# do something with the order
end
ShopifyAPI::Product.find_all(:limit => 250) do |order|
# do something with the product
@shapeshed
shapeshed / nginx_rails_3_1
Created October 10, 2011 19:13
Nginx Config for Rails 3.1 with Unicorn and Asset Pipeline
upstream app {
server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name www.app.com;
rewrite ^/(.*) http://app.com/$1 permanent;
}
server {