Skip to content

Instantly share code, notes, and snippets.

View ashleydavies's full-sized avatar
🐧

Ashley Davies ashleydavies

🐧
View GitHub Profile
#! /usr/bin/env python
from bcc import BPF
b = BPF(text="""
BPF_PERCPU_ARRAY(call_count, int);
int kprobe__sys_clone() {
int zero = 0;
int one = 1;
public function initialize() {
parent::initialize();
$this->Auth->deny();
$this->loadModel('Users');
$this->loadModel('Items');
$user = $this->Users->find()
->where(['id' => $this->Auth->user('id')])
->contain(['Ranks'])
->first()