Skip to content

Instantly share code, notes, and snippets.

View preetjdp's full-sized avatar
:shipit:
Brainstorming

Preet Parekh preetjdp

:shipit:
Brainstorming
View GitHub Profile
@preetjdp
preetjdp / semaphore-binary-merkle-root-fix_attestation.log
Created July 24, 2025 04:45
Attestation for Semaphore Binary Merkle Root Fix MPC Phase 2 Trusted Setup ceremony
Hey, I'm preetjdp-27439197 and I have contributed to the Semaphore Binary Merkle Root Fix MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (semaphore-1)
Contributor # 10
Contribution Hash: 26b768c8 059f0e56 752e9c70 9e7b7d6b
e6410284 fcf6887a fc5ff5bc 4fabda97
6163e829 ec6ce3d1 0ed41aea 1ee73904
3d6d8ac0 ed7c2a68 6d90d84a 0b3281de
@preetjdp
preetjdp / anon-aadhaar-v2-trusted-setup-ceremony_attestation.log
Created June 11, 2024 12:30
Attestation for Anon Aadhaar V2 Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm preetjdp-27439197 and I have contributed to the Anon Aadhaar V2 Trusted Setup Ceremony.
The following are my contribution signatures:
Circuit # 1 (aadhaarverifier)
Contributor # 43
Contribution Hash: f61f1fb9 e36fb08a 5c4bbf94 626ed3da
cc6a8881 c453e453 1caed14a 4c53bd4c
2df3f5a8 3de16821 a3a6db7b 294e3d2a
74b79ef8 8c30caea b5f845ef 556e6f4c
@preetjdp
preetjdp / my_operator.cs
Created June 22, 2022 17:22
The sample webhook for demo
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using System;
public class WebhookData
{
public int Id { get; set; }
public string _fu { get; set; }
public string _fn { get; set; }
public string _ca { get; set; }
@preetjdp
preetjdp / customUpsert.ts
Created February 1, 2022 07:05
Custom Upsert
import { Instance, Model, Transaction, WhereOptions } from "sequelize";
/**
* A custom function to upsert the data in the table
*
* @param model The model of the
* @param values The value to be upserted with
* @param condition The condition to match the record
* @param transaction The transaction that this is a part of
*
@preetjdp
preetjdp / access_token.txt
Created October 2, 2021 07:06
Livekit Access token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2aWRlbyI6eyJyb29tSm9pbiI6dHJ1ZSwicm9vbSI6IjE2Ni04ZWQtYThkIn0sImlhdCI6MTYzMzE1ODMzOCwibmJmIjoxNjMzMTU4MzM4LCJleHAiOjE2MzMxNzI3MzgsImlzcyI6IkFQSXp5M215REo1R0ZIUyIsInN1YiI6IkphY2siLCJqdGkiOiJKYWNrIn0.MyFsP-FOBFJ5cqooZi8n4R0_z6ot5t3JYdJYnNTNFd8
2021-10-02T06:57:07.841Z DEBUG livekit service/roommanager.go:226 starting RTC session {"room": "166-8ed-a8d", "nodeID": "ND_5ArUdzpC", "participant": "Amir", "sdk": "JS", "sdkVersion": "0.12.2", "protocol": 3}
2021-10-02T06:57:07.843Z INFO livekit rtc/room.go:192 new participant joined {"pID": "PA_ahq5ghnJCW9X", "participant": "Amir", "protocol": 3, "room": "166-8ed-a8d", "roomID": "RM_CkrdERcJKnMF"}
2021-10-02T06:57:07.844Z INFO livekit service/rtcservice.go:139 new client WS connected {"connID": "Amir", "roomID": "RM_CkrdERcJKnMF", "room": "166-8ed-a8d", "participant": "Amir"}
2021-10-02T06:57:07.995Z DEBUG livekit rtc/participant.go:760 sending server offer to participant {"participant": "Amir", "pID": "PA_ahq5ghnJCW9X"}
2021-10-02T06:57:07.997Z DEBUG livekit rtc/participant.go:705 sending ice candidates {"participant": "Amir", "pID": "PA_ahq5ghnJCW9X", "candidate": "udp4 host 172.22.0.2:7882"}
2021-10-02T06:57:07.997Z DEBUG liv
@preetjdp
preetjdp / Debezium Dockerfile openjdk:18
Last active July 6, 2021 14:36
Dockerfile for Debezium using openjdk 18
FROM openjdk:18
LABEL maintainer="Debezium Community"
#
# Set the version, home directory, and MD5 hash.
#
ENV DEBEZIUM_VERSION=1.6.0.Final \
SERVER_HOME=/debezium \
MAVEN_REPO_CENTRAL="https://repo1.maven.org/maven2"
import 'dart:convert';
import 'package:flutter/foundation.dart';
void main() {
MyRadio radio = new MyRadio(category: "test", color: "test",icon: "test", desc: "test", id: 123, image: "test",lang: "test", name: "test", order: 23, tagline: "test",url: "test");
MyRadioList list = new MyRadioList(radios: [radio]);
print(list);
@preetjdp
preetjdp / generic_optional.ts
Created December 10, 2020 07:48
Generic Optional
// Ref -> https://github.com/Microsoft/TypeScript/issues/25760#issuecomment-614417742
type Optional<T, K extends keyof T> = Omit<T, K> & Partial<T>;
interface User {
uuid: string
name: string
}
const createUser = (user: Optional<User, "uuid">): void => {
<html>
<iframe>
<form>
<script src="https://checkout.razorpay.com/v1/payment-button.js" data-payment_button_id="pl_FxRBru76Pu4R9m">
</script>
</form>
</iframe>
</html>