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
Database Schema Roundtable | |
========================== | |
based on IC 5, many modifications, relational | |
products | |
-------- | |
- weight from integer to decimal | |
- canonical_sku for variants to point to main product, because all |
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() { | |
function getScript(url,success){ | |
var script=document.createElement('script'); | |
script.src=url; | |
var head=document.getElementsByTagName('head')[0], done=false; | |
script.onload=script.onreadystatechange = function(){ | |
if ( !done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') ) { | |
done=true; | |
success(); | |
script.onload = script.onreadystatechange = null; |
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
{ | |
"vars": {}, | |
"css": [ | |
"buttons.less", | |
"close.less", | |
"modals.less" | |
], | |
"js": [ | |
"modal.js" | |
] |
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
{ | |
"vars": { | |
"@gray-darker": "lighten(#000, 13.5%)", | |
"@gray-dark": "#333", | |
"@gray": "lighten(#000, 33.5%)", | |
"@gray-light": "lighten(#000, 60%)", | |
"@gray-lighter": "#ccc", | |
"@brand-primary": "#ed9924", | |
"@brand-success": "#5cb85c", | |
"@brand-info": "#5bc0de", |
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/log/httpd/*log { | |
missingok | |
notifempty | |
sharedscripts | |
postrotate | |
/sbin/service httpd reload > /dev/null 2>/dev/null || true | |
endscript | |
} | |
/var/log/httpd/*/logs/*log { |
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
# fcgiwrap launcher, /etc/init.d/fcgiwrap | |
# see: https://github.com/gnosek/fcgiwrap | |
# and https://www.nginx.com/resources/wiki/start/topics/examples/fcgiwrap/ | |
# and: https://web.archive.org/web/20130324035657/http://nginx.localdomain.pl/wiki/FcgiWrap | |
# props: https://web.archive.org/web/20130322054803/http://www.tonimueller.org/blog/2012/09/hosting-interchange-on-nginx.html | |
# | |
#!/usr/bin/perl | |
use strict; | |
use warnings FATAL => qw( all ); |
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
ScriptAlias /cgi-bin/ /home/mysite/cgi-bin/ | |
RewriteEngine On | |
RewriteRule ^/index(\.html?)?$ / [R=301] | |
RewriteRule ^/?$ /cgi-bin/mysite/index [L,NS,PT] | |
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} -f | |
RewriteRule ^ - [L,NS] | |
RewriteCond %{REQUEST_FILENAME} \. |
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
<?php | |
/* | |
Plugin Name: Disable Pingbacks | |
Description: This plugin disables pingbacks. | |
Version: 1.0 | |
Author: Josh Lavin | |
Author URI: http://www.endpoint.com | |
*/ | |
add_filter( 'xmlrpc_methods', function( $methods ) { unset( $methods['pingback.ping'] ); return $methods; } ); |
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
diff --git a/lib/Shipment/FedEx.pm b/lib/Shipment/FedEx.pm | |
index 67ca542..b15897e 100644 | |
--- a/lib/Shipment/FedEx.pm | |
+++ b/lib/Shipment/FedEx.pm | |
@@ -262,6 +262,7 @@ sub _build_services { | |
PackageCount => $self->count_packages || 1, | |
PackageDetail => 'INDIVIDUAL_PACKAGES', | |
RequestedPackageLineItems => \@pieces, | |
+ RateRequestTypes => 'LIST', | |
}, |
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
#!/bin/env perl | |
use strict; | |
use warnings; | |
use JSON::MaybeXS qw(decode_json); | |
chomp( my $input = <STDIN> ); | |
my $ref = decode_json( $input ); |
OlderNewer