Skip to content

Instantly share code, notes, and snippets.

@Antoinebr
Last active April 12, 2019 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Antoinebr/ffe9fd9c9d26ed8527830a72242eb428 to your computer and use it in GitHub Desktop.
Save Antoinebr/ffe9fd9c9d26ed8527830a72242eb428 to your computer and use it in GitHub Desktop.

Edit Profile

nano ~/.bash_profile

Add this to the profile

getAmpCache(){
    curl -s -L -o /dev/null -w "\n \n AMP URL : $1  | AMP cache URL: %{url_effective}  \n \n" https://cdn.ampproject.org/c/s/$1
}

Reload the profile

. ~/.bash_profile

Use the fonction

In your terminal ( remove HTTPs:// )

getAmpCache amp-tracking.glitch.me/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment