Skip to content

Instantly share code, notes, and snippets.

View tonkapark's full-sized avatar

Matt Anderson tonkapark

View GitHub Profile
@tonkapark
tonkapark / taxjar_api_post.txt
Last active January 19, 2016 22:47
TaxJar JSON POST for SmartCalcs API Taxes Calculation
curl -X POST -H "Authorization: Token token="<<API_TOKEN>>"" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"to_country":"US",
"to_state": "CA",
"to_zip": "90210",
"from_state":"CA",
"from_zip": "90029",
"from_country":"US",
"amount": 29.94,
"line_items": [
{"quantity": 1, "unit_price": 19.99, "product_tax_code": "31000"},
echo "* Updating system"
apt-get update
apt-get -y upgrade
echo "* Installing packages"
apt-get -y install build-essential libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core nginx redis-server curl nodejs htop
id -u deploy &> /dev/null
if [ $? -ne 0 ]
then
@tonkapark
tonkapark / layout.html
Created December 4, 2011 02:16
html page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{{ page.name }} &mdash; {{ store.name }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Language" content="en-us" />
<meta name="description" content="{{ page.meta_description }}" />
<meta name="keywords" content="{{ page.meta_keywords }}" />
<meta name="author" content="tonkapark.com" />
<link href="/products.rss" rel="alternate" title="Product RSS Feed" type="application/rss+xml" />
@tonkapark
tonkapark / bigcartel_to_shopify_csv.rb
Created August 3, 2011 18:06
Generate a products csv file to make it easier to migrate from Big Cartel to Shopify
#script created by Matt Anderson, http://tonkapark.com
require 'rubygems'
require 'bigcartel'
require 'csv'
# SET YOUR BIGCARTEL ID HERE
STORE = 'ugmonk'
# SET THE BEST NAME FOR ANY DROP DOWN OPTIONS
@tonkapark
tonkapark / .gems
Created November 18, 2009 20:45
gems manifest for spree 0.9.2
activemerchant --version 1.4.1
activerecord-tableless --version '>= 0.1.0'
calendar_date_select --version 1.15
chronic --version '>= 0.2.3'
tlsmail --version 0.0.1
rspec --version '>= 1.2.9'
rspec-rails --version '>= 1.2.0'
will_paginate --version '>= 2.3.11'
authlogic --version '>= 2.0.11'
compass --version 0.8.17