This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am andrewwatson on github. | |
* I am andywatson (https://keybase.io/andywatson) on keybase. | |
* I have a public key whose fingerprint is A73A DC6B 059F FC6C A0D0 AC71 6AA2 5555 E811 C05C | |
To claim this, I am signing this object: |
This file contains 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
$ curl 'http://sandbox.influxdb.com:8086/db/callprocessing/series?u=andy&p=andy' \ | |
-H 'Origin: http://sandbox.influxdb.com:8083' \ | |
-H 'Accept-Encoding: gzip, deflate' \ | |
-H 'Accept-Language: en-US,en;q=0.8' \ | |
-H 'Content-Type: application/json' \ | |
-H 'Accept: application/json, text/javascript' \ | |
-H 'Referer: http://sandbox.influxdb.com:8083/' \ | |
-H 'Connection: keep-alive' \ | |
--data-binary $'[{"points":[[{"name":"log_lines","columns":["line"],"points":[["here\'s some useful log info from [email protected]"]]}]],"name":"log_lines","columns":["0"]}]' \ | |
--compressed |
This file contains 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
<?php | |
$xml = new SimpleXmlElement(file_get_contents("http://thecatapi.com/api/images/get?format=xml&results_per_page=1&size=small")); | |
$cat_picture = $xml->data->images[0]->image->url; | |
?> | |
<Response> | |
<Message> | |
<Body>Meow!</Body> | |
<Media><?php echo $cat_picture; ?></Media> | |
</Message> | |
</Response> |
This file contains 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
package main | |
import ( | |
"fmt" | |
"strconv" | |
) | |
func main() { | |
for i := 0; i < 100; i++ { |
This file contains 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_dir": "/var/local/consul", | |
"datacenter": "california", | |
"enable_syslog": true, | |
"server": true, | |
"bootstrap_expect": 3 | |
} |
This file contains 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
{ | |
"dns_config": { | |
"service_ttl": { | |
"*": "5s", | |
"web": "30s" | |
}, | |
"allow_stale": true, | |
"max_stale": "10s" | |
} | |
} |
This file contains 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
{ | |
"service": { | |
"name": "consul", | |
"tags": ["server"] | |
} | |
} |
This file contains 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
<?php | |
/** | |
* What will the following code output? (No cheating!) | |
*/ | |
class Test { | |
private $a; | |
private $b; | |
public function getFunction() |
This file contains 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
<?php | |
class A { | |
protected static function doStuff() { | |
return "Hello "; | |
} | |
} | |
class B extends A { | |
This file contains 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
[root@ip-10-40-206-29 log]# /opt/bigcouch/bin/bigcouch | |
{error_logger,{{2012,3,6},{21,32,8}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]} | |
{error_logger,{{2012,3,6},{21,32,8}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.21.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[#Port<0.120>,<0.18.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,486}],[]]} | |
{error_logger,{{2012,3,6},{21,32,8}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[bigcou |