Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View preinheimer's full-sized avatar

Paul Reinheimer preinheimer

View GitHub Profile

Keybase proof

I hereby claim:

  • I am preinheimer on github.
  • I am preinheimer (https://keybase.io/preinheimer) on keybase.
  • I have a public key whose fingerprint is 83A8 F889 39CC 47EC 98B8 C3C2 54D4 4908 49A8 3BD2

To claim this, I am signing this object:

@preinheimer
preinheimer / gist:1752636
Created February 6, 2012 15:19
APC Command Line Test
<?php
if (apc_exists('count_key'))
{
$val = apc_inc('count_key');
}else
{
apc_store('count_key', 0);
$val = 0;
}
echo $val;
@preinheimer
preinheimer / gist:1752739
Created February 6, 2012 15:42
APC Example
<?php
//Run at least two of me in different terminal windows, they count independently
$val = 5;
apc_store('count_key', $val);
while(1)
{
$val = apc_inc('count_key');
echo "APC has: " . $val . "\n";
flush();
Verifying that +preinheimer is my blockchain ID. https://onename.com/preinheimer
{
"defaults":{
"username":"preinheimer_test"
},
"proxy_groups":{
"Canada":{
"Ottawa":{
"servers":[
{
"name":"Ottawa - IP 1",
GET http://example.preinheimer.com/ip.php HTTP/1.1
Host: example.preinheimer.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Firefox/67.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1