Skip to content

Instantly share code, notes, and snippets.

<?php
class Some_Class {
/**
* This code retrieves course data from an external API and displays it in the user's
* My Account area. A merchant has noticed that there's a delay when loading the page.
*
* == What changes would you suggest to reduce or remove that delay? ==
*/
@lideo
lideo / namecheap-netlify-dns-configuration.txt
Created September 4, 2019 11:21 — forked from ddeveloperr/namecheap-netlify-dns-configuration.txt
Netlify custom domain dns configuration with domain from namecheap
Please follow these steps to point your domain name to the Netlify nameservers:
- Having logged into Namecheap account, go to your Domain List -> click 'Manage' next to the domain billboardsjenica.com -> locate the 'Nameservers' section;
- Choose ‘Custom DNS’ in the drop-down menu;
- Fill in your custom nameservers into empty lines;
4 lines in total :
dns1.p07.yourDNS.net
dns2.p07.yourDNS.net
dns3.p07.yourDNS.net
@lideo
lideo / RrwZYP.markdown
Last active April 9, 2019 08:50 — forked from anonymous/RrwZYP.markdown
RrwZYP
'use strict';
// -----------------------------------------------------------------------------
// Dependencies
// -----------------------------------------------------------------------------
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
cd ~/Downloads
curl -O http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gz
curl -O http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz
tar -zxvf magento-1.8.1.0.tar.gz
mv ~/Downloads/magento-1.8.1.0 ~/Sites/magento
tar -zxvf magento-sample-data-1.6.1.0.tar.gz
mv magento-sample-data-1.6.1.0/media/* ~/Sites/magento/media/
mv magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql ~/Sites/magento/data.sql
cd ~/Sites
mv magento/* magento/.htaccess magento