Skip to content

Instantly share code, notes, and snippets.

@maceip
maceip / app.py
Created March 15, 2024 01:35
retrieval augmented generation: using solidity repos as FAISS vector store with langchain and vertex-ai. -> rag-llm for boosting solidity code generation quality
# dependencies:
# pip install --upgrade --user -q google-cloud-aiplatform langchain==0.0.332 faiss-cpu==1.7.4
# pip install asyncio requests uvicorn
#
# google cloud auth:
# get a service account key json, then:
# export GOOGLE_APPLICATION_CREDENTIALS=service.json
#
# works on ubuntu 22.04
# pip 22.0.2
@maceip
maceip / zkp2p-trusted-setup-ceremony-v2-1-hdfc_attestation.log
Created January 18, 2024 00:42
Attestation for ZKP2P Trusted Setup Ceremony V2.1 HDFC MPC Phase 2 Trusted Setup ceremony
Hey, I'm maceip-804368 and I have contributed to the ZKP2P Trusted Setup Ceremony V2.1 HDFC.
The following are my contribution signatures:
Circuit # 1 (zkp2p-hdfc-send-v2)
Contributor # 8
Contribution Hash: 757f590a df3d9c87 91b1793a a1a4dccc
52ee47e6 236a9896 c1fdf272 97fd71b1
de4a93bb 19f37e30 511e13ca 2984d90a
92d1a113 e342e7ff 33ff69ca d31649a0
@maceip
maceip / zkp2p-trusted-setup-ceremony-v2_attestation.log
Created January 10, 2024 18:39
Attestation for ZKP2P Trusted Setup Ceremony V2 MPC Phase 2 Trusted Setup ceremony
Hey, I'm maceip-804368 and I have contributed to the ZKP2P Trusted Setup Ceremony V2.
The following are my contribution signatures:
Circuit # 1 (zkp2p-hdfc-send)
Contributor # 16
Contribution Hash: be186691 b3070690 755f1f20 55a557bd
a825ad8c 067e8e8f 5919c320 7f062741
6873bac0 f33f18ea 40141c5f 7ac4fe83
ea15f8d9 6a48e3df 81f6d494 a528b889
@maceip
maceip / email-wallet-trusted-setup-ceremony_attestation.log
Created November 16, 2023 18:26
Attestation for Email Wallet Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm maceip-804368 and I have contributed to the Email Wallet Trusted Setup Ceremony.
The following are my contribution signatures:
Circuit # 1 (emailwallet-account-creation)
Contributor # 25
Contribution Hash: 7bb98253 27793875 ebe28a84 92df6deb
cd793b93 a3da8aea a5beeb55 7a5beacf
29ce0370 d80739d4 e8f16630 d3979388
27e04778 c1aca723 948960dc 9acdb3e1
@maceip
maceip / zkp2p-trusted-setup-ceremony_attestation.log
Created November 11, 2023 22:26
Attestation for ZKP2P Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm maceip-804368 and I have contributed to the ZKP2P Trusted Setup Ceremony.
The following are my contribution signatures:
Circuit # 1 (venmo_send)
Contributor # 9
Contribution Hash: f38aeeb5 cab8ef72 00defae0 b4361dbd
e39ce8b2 750b2a92 3eaad7e7 885d778c
c5baed05 d1348e6e 89fcad2a ef1dd05c
cc5d5946 1fc09ed8 0df73539 d4c1cd65

Keybase proof

I hereby claim:

  • I am maceip on github.
  • I am mac (https://keybase.io/mac) on keybase.
  • I have a public key ASDPASYsuvRmynKSroCuwkqePFrOh9kNJpt2z2Qp9XrVrAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am maceip on github.
  • I am mac (https://keybase.io/mac) on keybase.
  • I have a public key whose fingerprint is 2852 5CE9 5422 FE62 3F8F 1DC5 D979 A785 6FCD 2BDF

To claim this, I am signing this object:

@maceip
maceip / check.rb
Created May 18, 2013 08:00
test if company is using certain cloud services. uses first argument as company name to query
require 'open-uri'
open("https://#{ARGV[0]}.box.com/", 'User-Agent' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36').read =~ /<title>(.*?)<\/title>/
box = $1
open("https://#{ARGV[0]}.okta.com/", 'User-Agent' => 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36').read =~ /<title>(.*?)<\/title>/
okta = $1
printf("BOX: %s, OKTA %s\n", box.chars.first.eql?("C") ? "true" : "false", !okta.chars.first.eql?(" ") ? "true" : "false")