Skip to content

Instantly share code, notes, and snippets.

@1a35e1
1a35e1 / truncate-sns-endpoints.sh
Created November 14, 2023 21:25
Quickly truncate endpoints from an SNS application
# This is destructive. Please think before executing.
SOME_ARN="your-arn-here"
aws sns list-endpoints-by-platform-application --platform-application-arn $SOME_ARN | \
jq -r '.Endpoints[].EndpointArn' | \
xargs -I {} aws sns delete-endpoint --endpoint-arn {}
@1a35e1
1a35e1 / fetchSubscriberState.ts
Last active January 26, 2024 12:28
withFabric, STPv1 - fetchSubscriberState EthersJS
/**
* Source: https://github.com/withfabricxyz/protocol-sdks/blob/main/src/stpv1/subscription.ts
*/
// From https://docs.withfabric.xyz/stp/contracts/STPV1ABI
import stpV1ABI from './stpv1.json'
// Typedef for reference
type SubscriberState = {
/** The address of the account */
@1a35e1
1a35e1 / semaphore-v4-ceremony_attestation.log
Created July 9, 2024 19:46
Attestation for Semaphore V4 Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm 1a35e1-42714653 and I have contributed to the Semaphore V4 Ceremony.
The following are my contribution signatures:
Circuit # 1 (semaphorev4-1)
Contributor # 389
Contribution Hash: 16e908c2 29b8c636 9b1ae147 230a8b52
05da1074 63525d8e 7125e838 0240d521
d3f19c36 81496926 66aac563 2b1507d0
e6b347ad e8620d76 5a466f5c 48475d41