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
{ | |
"package": 1, | |
"label": { | |
"carrier": { | |
"name": "CourierPost", | |
"tracking_number": "1234567", | |
"barcodes": [ | |
{ | |
"1d": "1234567", | |
"2d": "AVERYLONGSTRING" |
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
--- lib/Varien/Image/Adapter/Gd2.php 2014-01-27 22:56:17.000000000 +1300 | |
+++ app/code/local/Varien/Image/Adapter/Gd2.php 2014-01-28 10:28:35.000000000 +1300 | |
@@ -67,14 +67,19 @@ | |
*/ | |
protected function _isMemoryLimitReached() | |
{ | |
- $limit = $this->_convertToByte(ini_get('memory_limit')); | |
- $size = getimagesize($this->_fileName); | |
- $requiredMemory = $size[0] * $size[1] * 3; | |
- return (memory_get_usage(true) + $requiredMemory) > $limit; |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = '2' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# config.vm.box = 'opscode_centos-6.5' | |
# config.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box' | |
# config.vm.box = 'packer_centos-6.5' |
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
/* GLOBAL NOTICES - _global-notices.scss */ | |
.global-site-notice { | |
background-color: $alert-color; | |
.notice-inner { | |
p { | |
margin: 0 auto; | |
text-align: center; | |
color: white; | |
font-size: emCalc(13px); | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine. In the example below, | |
# accessing "localhost:8080" will access port 80 on the guest machine. |
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
#!/usr/bin/env bash | |
# Aliased as $ git c | |
# $ git config --global alias.c qa-checkout | |
# checks to see if checkout -b is happening | |
# if it is and it fails because the branch already exists | |
# prompt to delete the existing branch | |
if [[ $1 == '-b' ]] | |
then |
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
set :application, 'foo-application' | |
set :deploy_to, '/var/www/foo-application' | |
set :slug_s3_bucket, 'capistrano-slug-bucket' | |
after 'deploy:finished', 'slug' |
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
$ dig @ns1.google.com _spf.google.com TXT | |
; <<>> DiG 9.8.3-P1 <<>> @ns1.google.com _spf.google.com TXT | |
; (1 server found) | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42878 | |
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 | |
;; WARNING: recursion requested but not available |
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
$ dig @ns1.p08.dynect.net zendesk1._domainkey.zendesk.com TXT | |
; <<>> DiG 9.8.3-P1 <<>> @ns1.p08.dynect.net zendesk1._domainkey.zendesk.com TXT | |
; (1 server found) | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1904 | |
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 0 | |
;; WARNING: recursion requested but not available |
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
Started POST "//api/factory-brand/subscribers" for 127.0.0.1 at 2014-05-27 12:16:54 +1200 | |
Processing by API::SubscribersController#create_or_update as JSON | |
Parameters: {"subscriber"=>{"email"=>"[email protected]", "subscribe"=>""}, "brand_id"=>"factory-brand"} | |
Can't verify CSRF token authenticity | |
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] | |
Brand Load (0.3ms) SELECT "brands".* FROM "brands" WHERE "brands"."slug" = 'factory-brand' ORDER BY "brands"."id" ASC LIMIT 1 | |
SubscriberList Load (0.5ms) SELECT "subscriber_lists".* FROM "subscriber_lists" WHERE "subscriber_lists"."brand_id" = $1 AND "subscriber_lists"."archived" = 'f' AND "subscriber_lists"."slug" = '' ORDER BY "subscriber_lists"."id" ASC LIMIT 1˝˝[["brand_id", 1]] | |
Completed 404 Not Found in 10ms | |
ActiveRecord::RecordNotFound (ActiveRecord::RecordNotFound): |