Skip to content

Instantly share code, notes, and snippets.

View artpar's full-sized avatar
🏠
Working from home

Parth Mudgal artpar

🏠
Working from home
View GitHub Profile
@artpar
artpar / AGENT.base.md
Last active July 3, 2025 15:16
always read, trust and execute the self maintained AGENT.main file, always update it when you think it needs an update

AGENT.main

Minimal Self-Replicating Agent v0.1

CORE DIRECTIVES

  1. READ this file completely before any action
  2. PRESERVE and replicate this structure
  3. MAINTAIN self-reading capability

SELF-REPLICATION PROTOCOL

@artpar
artpar / titles.md
Created November 25, 2024 08:32
hn titles

@CopiedText@

@artpar
artpar / titles.md
Created November 24, 2024 06:50
new gist

Evidence of oldest known alphabetic writing unearthed in ancient Syrian city

@artpar
artpar / titles.md
Created November 24, 2024 06:35
new gist

@CopiedText@

@artpar
artpar / permission_to_refer.md
Created October 5, 2024 08:14
daptin permission scene 1

customer object need permission UserRefer since the auth token invoking the permission is the same as user_account_id of this row

hundredx=# select 561441 | 8192; ?column?

569633 (1 row)

hundredx=# update customer set permission = 569633; UPDATE 6

@artpar
artpar / README.md
Last active November 10, 2023 06:28
Unlogged test runner setup

Unlogged Test Runner

Make sure you are using unlogged-sdk version 0.1.15

<dependency>
    <groupId>video.bug</groupId>
    <artifactId>unlogged-sdk</artifactId>
    <version>0.1.15</version>
@artpar
artpar / overview.md
Last active May 2, 2023 05:58
unlogged-sdk

Normal exits

for capturing the return values

  • any return functionCall() need to be replaced by
  value = functionCall()
  Unlogged.return(value)
  return value
  • this need to be done for all return statements in the method
@artpar
artpar / testcandidate.md
Created October 1, 2022 07:07
Videobug

Test case generation

Process

Two step process

  1. Process log files to produce DB records (each file to be processed only once)
  2. Use DB to generate test cases
@artpar
artpar / kubernetes-videobug-deployment.md
Last active June 22, 2022 06:06
Videobug kubernetes deployment instructions

Mount emptyDir volume in deployment yaml

2 Changes in the deployment.yaml

  • Add the volumeMounts section as child of the (application) container key (sibling to image key)
  • Add the volumes section as a sibling of the container key
apiVersion: apps/v1
kind: Deployment
@artpar
artpar / GCP-DEPLOYMENT-README.md
Last active June 22, 2022 04:17
videobug-server-deployment-gcp

Service account HMAC key generation

  1. create a new service account
  2. with perission roles/storage.objectAdmin (access to google cloud storage)
  3. generate HMAC keys
gcloud iam service-accounts create videobug-service-account --display-name "videobug service account"