This file contains hidden or 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
Go to https://analytics.google.com | |
#Step1 | |
-Create an account | |
-Create a property | |
-Create a view named "Global" | |
#Step2 | |
Create a view named "site.com" | |
Go to filters and create new one with |
This file contains hidden or 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.noConflict() | |
if Prototype.BrowserFeatures.ElementExtensions | |
disablePrototypeJS = (method, pluginsToDisable) -> | |
handler = (event) -> | |
event.target[method] = undefined | |
setTimeout -> | |
delete event.target[method] | |
return |
This file contains hidden or 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
FTP server with simple user management and aws guide | |
https://help.ubuntu.com/community/PureFTP | |
****For AWS read to the bottom. YOURIP is your aws instance external. use ELASTIC IP for same ip after restarting |
This file contains hidden or 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
composer run-script post-install-cmd -vvv -- --redeploy |
This file contains hidden or 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
brew cask list | xargs brew cask install --force |
This file contains hidden or 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
SELECT | |
"Est_Handler_Magento_CoreConfigData" AS handler, | |
scope AS param1, | |
scope_id AS param2, | |
path AS param3, | |
"" AS groups, | |
`value` AS `default`, | |
'' AS devbox, | |
'' AS deploy, | |
'' AS latest, |
This file contains hidden or 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
LOCK TABLES `admin_role` WRITE , `admin_user` WRITE; | |
SET @SALT = "rp"; | |
SET @PASS = CONCAT(MD5(CONCAT( @SALT , "password") ), CONCAT(":", @SALT )); | |
SELECT @EXTRA := MAX(extra) FROM admin_user WHERE extra IS NOT NULL; | |
INSERT INTO `admin_user` (firstname,lastname,email,username,password,created,lognum,reload_acl_flag,is_active,extra,rp_token_created_at) | |
VALUES ('Firstname','Lastname','[email protected]','admin',@PASS,NOW(),0,0,1,@EXTRA,NOW()); | |
INSERT INTO `admin_role` (parent_id,tree_level,sort_order,role_type,user_id,role_name) |
This file contains hidden or 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 | |
USER=$1 | |
PASS=$2 | |
DB=$3 | |
if [ -z $DB ]; | |
then | |
echo "\n" | |
echo "Usage: mysqldump-magento.sh user password database\n" |
This file contains hidden or 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
********** LP ******** | |
folder skin images | |
glue-sprite sprites --css ../css/ --img ./ --ratios=2,1.5,1 | |
folder skin css | |
sass-convert --from css --to scss sprites.css sprites.scss | |
********* | |
****get list for purge cache | |
**on root project folder | |
find media/css -name *.css |
This file contains hidden or 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 | |
/** | |
* This class provides the methods to calculate the estimated time to completion | |
* (or ETC) for a iterated procedure, by passing the numer of iterations you will do. | |
* | |
* ----------------------------------------------------------------------------- | |
* Example of usage: | |
* $timer = new ETC(number of iterations you have); | |
* |