- GuzzleException
- SeekException
- TransferException
- RequestException (
RequestInterface
;ResponseInterface
|null
)- TooManyRedirectsException
- ConnectException
- BadResponseException
- ServerException
- RequestException (
- ClientException
<?php | |
$options = getopt('p:'); | |
$prefix = empty($options['p']) | |
? realpath('.') | |
: realpath($options['p']); | |
if (empty($prefix)) { | |
die("Bad prefix. Try again.\n"); | |
} |
RequestInterface
; ResponseInterface
| null
)
<select name="state"> | |
<option value="AL">Alabama</option> | |
<option value="AK">Alaska</option> | |
<option value="AZ">Arizona</option> | |
<option value="AR">Arkansas</option> | |
<option value="CA">California</option> | |
<option value="CO">Colorado</option> | |
<option value="CT">Connecticut</option> | |
<option value="DE">Delaware</option> | |
<option value="DC">District Of Columbia</option> |
consumers.go: $(wildcard data/consumers/*.pub) | |
ls -l data/consumers > consumers.go | |
cat consumers.go | |
clean: | |
rm -rf consumers.go data/consumers/*.pub |
version: '2' | |
volumes: | |
metric_data: {} | |
networks: | |
metrics: | |
driver: bridge | |
services: |
# http://superuser.com/a/634198 | |
VBoxManage guestproperty enumerate $1 | grep IP |
<?php | |
function get_excerpt($input, $length = 250) | |
{ | |
return current(explode("\n", wordwrap($input, $length))); | |
} |
<?php // via http://stackoverflow.com/questions/11657835 | |
$onlyIds = array_map('current', $results); |
set_acl_permissions: |