How To

HOW to get visitor IP behind Cloudfare or Proxy

Normally we would use $_SERVER[‘REMOTE_ADDR’] but unfortunately, this doesn’t work with Cloudflare. This small PHP function will let you get the visitor’s real IP address, even if you use Cloudflare or if they’re hiding behind a proxy

HOW to change remote’s URL in Git?

There are various scenario where you want to change the remote’s URL in your git repository. You can fire git remote set-url command to change/ update existing remote repository URL. The git remote set-url command takes two arguments: An existing remote name. For example, origin or upstream are two common choices. A new URL for the remote. For example: If you’re updating to …

HOW to change remote’s URL in Git? Read More »

HOW to create different shapes with CSS?

Here’s how you can create different shapes using CSS 1. Square 2. Circle 3. Oval 4. Trapezoid 5. Rectangle 6. Parallelogram 7. Triangle Up 8. Triangle Down 9. Triangle Left 10. Triangle Right Here’s the full HTML code to check

Scroll to Top