Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
<?php | |
/** | |
* Recognizes mData sent from DataTables where dotted notations represent a related | |
* entity. For example, defining the following in DataTables... | |
* | |
* "aoColumns": [ | |
* { "mData": "id" }, | |
* { "mData": "description" }, | |
* { "mData": "customer.first_name" }, | |
* { "mData": "customer.last_name" } |
We're going to use the new tag history API to see tag updates to cgr.dev/chainguard/static:latest
!
First, exchange your Chainguard token for a registry token. This assumes you've set up auth with chainctl auth configure-docker
:
tok=$(curl -H "Authorization: Bearer $(echo 'cgr.dev' | docker-credential-cgr get)" -v "https://cgr.dev/token?scope=repository:chainguard/static:pull" | jq -r .token)