Skip to content

Instantly share code, notes, and snippets.

View pranav-bhatt's full-sized avatar

Pranav Bhatt pranav-bhatt

  • Bengaluru, India
View GitHub Profile
@pranav-bhatt
pranav-bhatt / cloudFormationCML.yml
Created September 19, 2023 03:55
cloudFormation CML
AWSTemplateFormatVersion: "2010-09-09"
Description: CloudFormation template with a custom resource that accepts user input.
Parameters:
WorkspaceName:
Type: String
Description: Enter the workspace name.
Mappings:
LambdaEnvironmentVariables:
@pranav-bhatt
pranav-bhatt / test.pxl
Created September 20, 2021 14:24
Custom bpftrace+pixie script
import pxtrace
import px
program = """
#include <uapi/linux/ptrace.h>
#include <linux/sched.h>
#include <linux/nsproxy.h>
#include <linux/pid_namespace.h>
[2021-08-17T12:34:58Z DEBUG drogue_cloud_service_common::client::device_auth] Outcome for AuthenticationRequest { application: "855d8de0-73b2-42fc-9fff-c9d19eb7f101", device: "device1", credential: Password(...), as: None } is AuthenticationResponse { outcome: Pass { application: Application { metadata: NonScopedMetadata { name: "855d8de0-73b2-42fc-9fff-c9d19eb7f101", uid: "352fb81a-5f18-4e1a-949e-b00d75dc90fe", creation_timestamp: 2021-08-17T12:34:53.694610Z, generation: 9, resource_version: "02950c43-5314-433c-a01a-a013b88689ab", deletion_timestamp: None, finalizers: ["kafka"], labels: {}, annotations: {} }, spec: {}, status: {"kafka": Object({"user": Object({"password": String("BBLwD96KzahA"), "username": String("user-855d8de0-73b2-42fc-9fff-c9d19eb7f101"), "mechanism": String("SCRAM-SHA-512")}), "conditions": Array([Object({"type": String("HasFinalizer"), "status": String("True"), "lastTransitionTime": String("2021-08-17T12:34:53.765740891Z")}), Object({"type": String("CreateTopics"), "status": String("Tr
@pranav-bhatt
pranav-bhatt / filter.json
Last active March 5, 2021 13:52
filter.json
[
{
"name": "pull",
"rule":{
"ruleType": "rate-limiter",
"parameters":[
{"identifier": "Enterprise", "limit": 1000},
{"identifier": "Team", "limit": 100},
{"identifier": "Personal", "limit": 10}
]