News for hackers. Stuff that matters.

aenum

Re:Ext4 encryption on Wednesday May 27, 2015 @07:15AM (#9610537)
If the device is locked and does not allow ADB or MTP, 99% of perpetrators would not be able to access its data.
Re:Varnish: Counting hits on cached objects on Monday April 06, 2015 @08:53AM (#9327801)
Indeed. You would have to poll the endpoints you want to monitor periodically and obviously the hit counter will reset when the object is expired/purged.

Something like

  sub vcl_deliver {
    if (client.ip == "127.0.0.1") { # or header/method/whatever
      set resp.http.X-Cache-Hits = resp.hits;
    }
  }
Re:Varnish: Counting hits on cached objects on Sunday April 05, 2015 @05:56PM (#9325464)
Any particular reason why you could not use `obj.hits`?

https://www.varnish-cache.org/trac/wiki/VCLExampleHitMissHea... (this would be resp.hits in 4.0)