Ever wondered to have a customised log function to get array or text as input and add it to file with the exact date and time? guess what? here is the function, you can add it to your config file( or in WordPress add it to functions.php) and call it anywhere in your code to log
If you want to connect a folder into another folder(like the shortcut in windows), you need to link it via LN command.
ln -s /folder/to/link newFolderName
for example, you can link the git folder into localhost folder to test changes locally before pushing to live.
- Published in General
You need to decode filezilla encoded passwords? paste it here to get the encoded, decoded string. Put your text to Encode/Decode
In order to use git Check git version Command: git -version If not install, add it to your server (Centos) sudo yum install git-all Create local Repository: Command: git init Add all file to your local git command: git add -u * Commit them to your local repository command git commit <file> -m “some comment”
In order to do that you need to do 2 things: 1) Edit .htaccess file 2) Generate sh1 hash key for your password.(use this page to generate sh1 passwosh hash) 2) Add it to .htpass file (all user and hashed-password) and upload to server. 1) Add the following lines to your .htaccess file:
AuthName "restricted area"
flex property all in one page
display: [flex || inline-flex ]
flex-direction: [row || row-reverse || column || column-reverse];
flex-wrap: [nowrap || wrap || wrap-reverse];
/*flex-flow is a shorthand for the flex-direction & the flex-wrap .*/
flex-flow: <flex-direction> && <flex-wrap>
justify-content: [flex-start || flex-end || center || space-between || space-around];
align-items: [flex-start || flex-end || center || baseline || stretch];
align-content: [flex-start || flex-end || center || space-between || space-around || stretc]h;
flex-grow: <number>; /* default 0 */
flex-shrink: <number>; /* default 1 */
flex-basis: auto | <length> |; /* default auto */
/*flex is a shorthand for the flex-grow, flex-shrink & the flex-basis .*/
-webkit-box-flex: none | [ <'flex-grow'> <'flex-shrink'> <'flex-basis'> ];
-moz-box-flex: none | [ <'flex-grow'> <'flex-shrink'> <'flex-basis'> ];
-webkit-flex: none | [ <'flex-grow'> <'flex-shrink'> <'flex-basis'> ];
-ms-flex: none | [ <'flex-grow'> <'flex-shrink'> <'flex-basis'> ];
flex: none | [ <'flex-grow'> <'flex-shrink'> <'flex-basis'> ];
align-self: auto | flex-start | flex-end | center | baseline | stretch;
If you need to manually insert password into database for Magento or WordPress. You can generate hash password.
echo "md5 pass: ".md5($password); //md5 hash
echo "sh1 pass: ".sha1($password); //sh1 hash
echo "magento pass: ". md5($salt.$password).":".$salt; //magento hash with salt
//for wordpress, you need include PasswordHash class.
$wp_hasher = new PasswordHash(8, true);
echo "wp(v3 & v4) pass is: ". $wp_hasher->HashPassword( trim( $password ) );
If its easier you can use our pass generator form below: Password Salt for Magento
Editing wordpress theme on localhost is very easy and fast, but its getting tricky if you want to move your site from local environment to live server. Here is 4 step you need to follow:
Imagine you have a page which you want accessible by admin or logged-in user. You need redirect not Logged in users, if they directly access page’s url. there is a simple trick to that.