Useful common function in JavaScript
Custom Console.log function – This will auto hide console in Live mode.
Custom Console.log function – This will auto hide console in Live mode.
Removing Extensions To remove the .php extension from a PHP file for example yoursite.com/wallpaper.php to yoursite.com/wallpaper you have to add the following code inside the .htaccess file: If you want to remove the .html extension from a html file for example yoursite.com/wallpaper.html to yoursite.com/wallpaper you simply have to change the last line from the code above, to match the filename: That’s it! You can now link pages inside the … Read more
method-1 (command line) To set your account’s default identity globally run below commands To set the identity only in current repository , remove –global and run below commands in your Project/Repo root directory Example: **Note: ** you can check these values in your GitHub profile or Bitbucket profile method-2 (.gitconfig) create a .gitconfig file in your home folder if … Read more
Please find below the working solution for Windows: Open Control Panel from the Start menu. Select User Accounts. Select the “Credential Manager”. Click on “Manage Windows Credentials”. Delete any credentials related to Git or GitHub. Once you deleted all then try to clone again. Reference: https://stackoverflow.com/questions/37813568/git-remote-repository-not-found
Quick setup — if you’ve done this kind of thing before Set up in DesktoporHTTPSSSH Get started by creating a new file or uploading an existing file. We recommend every repository include a README, LICENSE, and .gitignore. …or create a new repository on the command line echo “# api.carnama” >> README.md git init git add README.md git commit -m “first commit” git … Read more
Send mail after the post- Copy this code and paste it to function.php file
Redirect all URL HTTP traffic to HTTPS, i.e. permanently redirect old URL to new URL. Follow these steps: Open .htaccess file find RewriteEngine On and copy-paste these codes Note: Make sure the line RewriteEngine On is not repeated twice.