A Pen by Clive Walkden on CodePen.
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 | |
function utf_char_to_number($char) | |
{ | |
$i = 0; | |
$number = ''; | |
while (isset($char{$i})) | |
{ | |
$number .= '&#'.ord($char{$i}).';'; | |
$i++; | |
} |
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(){ | |
var largeimg = $('#largeImg img'); | |
$('.thumbs a').each(function(){ | |
var jQ = $(this); | |
var path = jQ.attr('href'); | |
var alt = jQ.attr('title') || ''; | |
var img = $('<img/>').load(function(){ | |
var pld = $(this), imgHeight = pld.height(); | |
jQ.click(function(){ | |
largeimg |
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
{ | |
"name": "sozodesign/magento", | |
"description": "SOZO Design default Magento start new website", | |
"require-dev": { | |
"phpunit/phpunit": "~4.4" | |
}, | |
"require": { | |
"aydin-hassan/magento-core-composer-installer": "^1.2", | |
"magento-hackathon/magento-composer-installer": "*", | |
"magento/magento": "1.9.*@dev", |
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
/.gitignore | |
/.htaccess | |
/app/etc/local.xml | |
/cron.php | |
/cron.sh | |
/downloader | |
/errors/ | |
/includes | |
/index.php | |
/index.php.sample |
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
# Start the old vagrant | |
$ vagrant init centos-7 | |
$ vagrant up | |
# You should see a message like: | |
# Installing Virtualbox Guest Additions 5.0.20 - guest version is unknown | |
$ vagrant ssh | |
vagrantup:~$ sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm | |
vagrantup:~$ sudo yum -y update |
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/python | |
#@author Bommarito Consulting, LLC; http://bommaritollc.com | |
#@date 2012-12-20 | |
import subprocess | |
import smtplib | |
from email.mime.text import MIMEText | |
fromAddress = '[email protected]' | |
adminEmail = '[email protected]' |
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/sh | |
### BEGIN INIT INFO | |
# Provides: Jackett | |
# Required-Start: $local_fs $network $remote_fs | |
# Required-Stop: $local_fs $network $remote_fs | |
# Should-Start: $NetworkManager | |
# Should-Stop: $NetworkManager | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts instance of Jackett |
Includes a basic clear.sql file for removing orders and customers and resetting the base invoice, order, shipment and creditmemo id's back to 0
A customweb_sagepay.sql
for clearing out test SagePay orders from the customweb module.
A invoice_starting.sql
for setting the start id's of invoices, orders, shipments and credit memos.
A mollie.sql
for clearing out test orders using Mollie payment module.
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
# Get the size of all the directories in the root sorted by size (MB) | |
du -sm /* | sort -n | |
# To exclude the /home directory (or other partitions not included in the space calculations) use --exclude=/home/ | |
du -sm /* --exclude=/home/ | sort -n | |
# Drill down to the offending directories | |
# These are normally | |
# /var/log | |
# /var/lib/mysql |
OlderNewer