$ ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*
Example ouput:
Apple[REDACTED]
USB 2.0 BILLBOARD
Apple[REDACTED]
$ ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*
Example ouput:
Apple[REDACTED]
USB 2.0 BILLBOARD
Apple[REDACTED]
I hereby claim:
To claim this, I am signing this object:
This script is useful if there is a proxy or a CDN between the client and the Pantheon Global CDN. This script will allow you to bypass the external CDN/proxy and resolve the request directly to Pantheon GCDN.
Client browser -> Cloudflare/ Proxy -> GCDN -> Pantheon Origin
Client browser -> GCDN -> Pantheon Origin
#!/bin/bash
show_help(){
echo Usage $0 domain
}
if [ -z "$1" ]; then
show_help
exit 1
<?php | |
if ($_ENV['PANTHEON_ENVIRONMENT'] != 'live') { | |
die(); | |
} | |
$config['email'] = '[EMAIL]'; | |
$config['sitemap'] = 'https://www.mydomain.com/post-sitemap.xml'; | |
check_sitemap_urls($config['sitemap'], $config['email'], 30); |
{ | |
"zone_id": "[ZONE_ID]", | |
"api_key": "[API_KEY]", | |
"email": "[EMAIL]" | |
} |
inotifywait -m -r /path/to/monitor -e create -e moved_to -e modify -e delete |
while read dir action file; do
echo "The file '$file' appeared in directory '$dir' via '$action'"
// Do what you want here.
done
The following events are valid for use with the -e option:
#!/bin/bash | |
sysctl machdep.xcpm.cpu_thermal_level | |
sysctl machdep.xcpm.gpu_thermal_level | |
sysctl machdep.xcpm.io_thermal_level |
$settings = json_decode($_SERVER['PRESSFLOW_SETTINGS'], true); | |
ini_set('session.save_handler', 'redis'); | |
ini_set('session.save_path', 'tcp://' . $settings['conf']['redis_client_host'] . ':' . $settings['conf']['redis_client_port'] . '?auth=' . $settings['conf']['redis_client_password']); | |
session_set_cookie_params(15*60, '/', $_SERVER["HTTP_HOST"], true, true); | |
session_start(); |
%{IPORHOST:remoteaddress} - - \[%{HTTPDATE:timelocal}\] "%{WORD:httpmethod} %{URIPATHPARAM:request} HTTP/%{NUMBER:httpversion}" %{NUMBER:response} (?:%{NUMBER:bytes}|-) (?:"(?:%{URI:referrer}|-)"|%{QS:referrer}) %{QS:useragent} %{BASE10NUM:request_duration} %{QS:xforwardedfor}