This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
count=$1 | |
echo "time | http_code | filesize | url"; | |
seq 1 $count | xargs -n1 -P$count bash -c 'i=$0; rand=$(openssl rand -base64 12); curl -o /dev/null -w "%{time_total} | %{http_code} | %{size_download} | %{url_effective}\n" -s "http://example.com/?${rand}"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SITES="docroot/sites" | |
# Validate and hint if no argument provided. | |
if [ "${#}" -eq 0 ]; then | |
echo "- drush-all: missing argument(s)" | |
echo "EXAMPLE: drush-all cex -y" | |
else | |
PWD=${PWD} | |
cd "${SITES}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If we make pages components: | |
{ | |
"data": { | |
"route": { | |
"path": "/news", | |
"entity": { | |
"entityBundle": "page", | |
"entityId": "371", | |
"entityLabel": "News", | |
"entityType": "node", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If we make pages themselves components that know their fields: | |
query { | |
route(path: "/news") { | |
path | |
... on EntityCanonicalUrl{ | |
entity { | |
entityBundle | |
entityId | |
entityLabel | |
entityType |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"redirectQuery": { | |
"entities": [ | |
{ | |
"redirectSource": { | |
"path": "testing-redirects-source", | |
"query": [] | |
}, | |
"redirectRedirect": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
redirectQuery(filter: {}) { | |
entities { | |
... on RedirectRedirect { | |
redirectSource { | |
path | |
query | |
} | |
redirectRedirect { | |
uri |
NewerOlder