Skip to content

Instantly share code, notes, and snippets.

View rjocoleman's full-sized avatar

Robert Coleman rjocoleman

  • Christchurch, New Zealand
View GitHub Profile
@rjocoleman
rjocoleman / styler.css
Created March 18, 2012 12:10
RIP Safari Extension include Cached and Similar links
div#vspb {display: none !important;}
button.vspib {display: none !important;}
#cnt.vsh #ires div.vsc:hover > .vspi, #ires div.vso > .vspi {background-color: transparent !important; border: 1px solid #FFF !important;}
div#nycp {display: none !important;}
div.vspib {display: none !important;}
/* Add Cached and Similar Links */
.vshid {display: inline
@rjocoleman
rjocoleman / proxy.pac
Created April 10, 2012 02:16
simple proxy pac configuration
function FindProxyForURL(url, host) {
// bypass proxy for localhost
if (host == "localhost") {return "DIRECT";}
if (host == "127.0.0.1") {return "DIRECT";}
// traffic we want to let in
if (dnsDomainIs(host, ".example.com") ||
dnsDomainIs(host, ".example.net")) {
return "DIRECT";
}
@rjocoleman
rjocoleman / gist:2723797
Created May 18, 2012 07:38
New Litmus Email Test TextMate command
if ! find_app com.litmusapp.Alkaline &>/dev/null; then
open http://litmusapp.com/alkaline/textmate/not-installed
else
open alkaline://new-email?file="$TM_FILEPATH"
fi
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/serf/1.1.0
## --------- ##
## Platform. ##
HOMEBREW_VERSION: 0.9.2
HEAD: 5cad448855a2dd107c977a02a78e02788225c0e2
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.8-x86_64
Xcode: 4.5 => /Applications/Xcode45-DP2.app/Contents/Developer
CLT: 4.5.0.0.1.1249367152
GCC-4.0: N/A
GCC-4.2: N/A
@rjocoleman
rjocoleman / Vagrantfile
Created October 31, 2012 04:56
My Vagrant config for vagrant-magento-mirror
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = 'precise64'
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecl="http://ECL.Online.BT.ChangeLog.ChangeLogRequest_v1_0_XML.xsd" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<ecl:ChangeLogRequest>
<ecl:MessageDateTime>2013-02-25T14:03:09+13:00</ecl:MessageDateTime>
<ecl:BusinessUnit>CP</ecl:BusinessUnit>
<ecl:AccountNumber>91327067</ecl:AccountNumber>
<ecl:ReturnData>Pricing</ecl:ReturnData>
</ecl:ChangeLogRequest>
</soap:Body>
<?xml version="1.0"?>
<package>
<name>Curebit_Checkout</name>
<version>0.1.10</version>
<stability>stable</stability>
<license>MIT</license>
<channel>community</channel>
<extends/>
<summary>Curebit Social Referrals System</summary>
<description>Curebit enables your Magento store to attract new customers by offering them special deals in exchange for sharing with their friends. This checkout extension provides links for them to share their purchase on Facebook, Twitter, and Email and encourages them to bring in new customers for you. Using Curebit, you help your customers drive more referral sales per dollar than traditional marketing and advertising. See more at Curebit.com</description>

Simplified TwoLevels

This backend is based on the concept of Zend_Cache's TwoLevels backend except it is only intended to use the fast backend for actual cache record storage and the slow backend for tagging support. The slow backend stores only empty records.

@rjocoleman
rjocoleman / gist:5603013
Created May 18, 2013 02:26
bash function to take piped input and pass it to `open`
web () {
while read data
do
echo $data
open $data
done
}