- https://www.youtube.com/channel/UCQGEOqPP0IJ8Or502xwEaqg
- https://www.youtube.com/channel/UCASYXKcPr9tYaz7Jf3ghuUg
- https://www.youtube.com/user/ENGLISHCLASS101
- https://www.youtube.com/channel/UCrBhVZa7t7D5tZ979eBqO9g
- https://www.youtube.com/user/EnglishByJade
- https://www.youtube.com/user/EnglishLessons4U
- https://www.youtube.com/user/EnglishTeacherAdam
- https://www.youtube.com/user/EnglishTeacherEmma
- https://www.youtube.com/user/AlexESLvid
Example extension: gmp on a MAMP PRO with PHP 5.6.27 installation. For other versions it's just replacing the php version in the paths. Steps below are tested on MacOS Sierra (10.12.2).
Install Brew and MAMP PRO.
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 | |
folderName=${PWD##*/} | |
magentoUser="MAGENTO_PUBLIC_KEY" | |
magentoPassword="MAGENTO_SECRET_KEY" | |
n98-magerun2.phar install --dbHost="localhost" --dbUser="root" --dbPass="root" --dbName="${folderName}" --installationFolder="magento-folder" --installSampleData=yes --baseUrl="http://${folderName}.test/" | |
mv magento-folder/* . |
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 | |
// yo can follow this guide to http://www.benrlodge.com/blog/post/how-to-generate-an-instagram-access-token# | |
#1 first you need to create a Client in Instgram Developer Dashboard | |
// https://www.instagram.com/developer/clients/manage/ | |
#2 after you need to retrive a oAuth code for after get access_token | |
// https://www.instagram.com/developer/authentication/ | |
// change the params with your one and open link in browser |
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 | |
echo "M2 - Deploy Static Content $1/$2 🚀" | |
rm -rf var/view_preprocessed/pub/static/frontend/$1/$2 | |
rm -rf var/view_preprocessed/source/frontend/$1/$2 | |
grunt exec:$2 |
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
jQuery(function($){ | |
var header = document.querySelector('header.page-header .header.content'), | |
panel = document.querySelector('header.page-header .panel'), | |
$panel = jQuery(panel), | |
$header = jQuery(header), | |
headerContainer = document.querySelector('header.page-header'), | |
$headerContainer = jQuery(headerContainer), | |
lastScroll = 0, | |
upSign = -1, |
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
<reference name="head"> | |
<block type="core/text" name="custom_css"> | |
<action method="setText"> | |
<text><![CDATA[ | |
<style type="text/css"> |
When you guys create a local dev environment, run this command to create database backup:
n98-magerun db:dump --strip='@development' --stdout | gzip > site-type-$(date +%Y%m%d%H%M%S).sql.gz
Replace “site" with the name of the site that you are backing up and “type" with either “prod”, “dev”, or “stage”.
NewerOlder