Skip to content

Instantly share code, notes, and snippets.

View jamieholliday's full-sized avatar

Jamie Holliday jamieholliday

View GitHub Profile
@jamieholliday
jamieholliday / home.jpg
Last active December 3, 2021 11:49
Mentor Matcher
home.jpg
@jamieholliday
jamieholliday / index.html
Created March 5, 2018 09:16
Facebook tracking pixel bug
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test</title>
<!-- Facebook Pixel Code -->
<script>
!function (f, b, e, v, n, t, s) {
if (f.fbq) return; n = f.fbq = function () {
@jamieholliday
jamieholliday / magento attribute
Created April 21, 2015 09:00
Add Magento attribute in setup script
$installer = $this;
$installer->startSetup();
$data = array(
'label' => 'Bulb Type',
'type' => 'varchar',
'backend' => 'catalog/resource_product_attribute_backend_image',
'input' => 'image',
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
@jamieholliday
jamieholliday / nginx.conf.template
Created March 28, 2015 11:51
nginx conf template
server {
return 404;
}
server {
listen 80;
server_name www.$APP;
return 301 http://$APP$request_uri;
}
@jamieholliday
jamieholliday / console.log snippet
Created June 2, 2014 14:55
sublime snippet console.log
<snippet>
<content><![CDATA[
console.log(${1});
]]></content>
<tabTrigger>log</tabTrigger>
<scope>source.js</scope>
</snippet>
@jamieholliday
jamieholliday / Magento Rerun Local Indexs
Created April 15, 2014 15:09
Magento Rerun local index's
time php -f shell/indexer.php reindexall | while read line; do echo "$(date) - $line"; done
@jamieholliday
jamieholliday / Magento Static Block Upgrade Script
Last active August 29, 2015 13:56
Magento Static Block Upgrade Script
$installer = $this;
$installer->startSetup();
$cmsBlocks = array(
array(
'title' => 'Title',
'identifier' => 'block_id',
'content' => 'content',
'is_active' => 1,
'stores' => 0
@jamieholliday
jamieholliday / Magento Cms Page Upgrade Script
Last active August 29, 2015 13:56
Magento CMS Page Upgrade Script
$installer = $this;
$installer->startSetup();
$cmsPages = array(
array(
'title' => 'Page 1 - Title',
'identifier' => 'page_1',
'content' => '<p>Some page content</p>',
'is_active' => 1,
@jamieholliday
jamieholliday / bash_dock_dividers
Created December 12, 2013 08:46
OSX Dock Dividers
# Left side
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
# Right Side
defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'
#Restart the dock so they show
killall Dock