Skip to content

Instantly share code, notes, and snippets.

View Divide-By-0's full-sized avatar

Yush G Divide-By-0

View GitHub Profile
@Divide-By-0
Divide-By-0 / safe-rm-to-trash.sh
Created August 6, 2026 23:44
macOS safe rm wrapper that moves user files to Trash while preserving common rm semantics
#!/bin/bash
# Move files to macOS Trash (safe rm wrapper).
#
# Goal: behave like POSIX rm for every case a script or build system can observe
# (exit codes, -f semantics, refusing to remove a directory without -r), while
# routing real user data to ~/.Trash instead of destroying it.
#
# NOTE: bash 3.2 compatible on purpose (/bin/bash on macOS is 3.2) — no mapfile,
# no ${var,,}, no `set -u` (3.2 errors on "${arr[@]}" when the array is empty).
@Divide-By-0
Divide-By-0 / self-zk-passport-ceremony-v2_attestation.log
Created March 10, 2025 10:09
Attestation for Self ZK Passport Ceremony v2 MPC Phase 2 Trusted Setup ceremony
Hey, I'm Divide-By-0-4804438 and I have contributed to the Self ZK Passport Ceremony v2.
The following are my contribution signatures:
Circuit # 1 (dsc_sha1_ecdsa_secp256r1)
Contributor # 5
Contribution Hash: 8b6e5db4 d77a87c1 a2dc53e1 a9c914bb
623f11d1 e0cff5b7 643d9a38 7722a6cf
2d496725 8ef6f559 0d62338a 2c8fb175
3257abca c5b655f3 14ab1da2 98a5b370
@Divide-By-0
Divide-By-0 / privacy-pools-ceremony_attestation.log
Created February 26, 2025 05:04
Attestation for Privacy Pools Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm Divide-By-0-4804438 and I have contributed to the Privacy Pools Ceremony.
The following are my contribution signatures:
Circuit # 1 (withdraw)
Contributor # 365
Contribution Hash: f1e9c751 4f61eb45 e0ac9a4e 74ce2eec
49e5c149 5acbe38b 8eb83fd2 e2d26df1
5cdaa479 be676dc4 ed6ca779 d925491f
ec24147c 9c44ae44 1622404c fd4fecb1
@Divide-By-0
Divide-By-0 / getcommits.py
Created November 3, 2024 22:22
List All Github Organization Commit Messages from Last N Days Script
import requests
from datetime import datetime, timedelta
import os
from dotenv import load_dotenv
import time
# GitHub API configuration
GITHUB_API_URL = "https://api.github.com"
ORG_NAME = "zkemail" # Replace with your organization name
LAST_N_DAYS = 30
@Divide-By-0
Divide-By-0 / emailapprover_attestation.log
Created July 24, 2024 17:53
Attestation for EmailApprover MPC Phase 2 Trusted Setup ceremony
Hey, I'm Divide-By-0-4804438 and I have contributed to the EmailApprover MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (emailapprover)
Contributor # 26
Contribution Hash: d8c149d3 fe817c41 26625b0b 4fb74910
c0a28664 6489928e b3a0b03a fcf62ada
2b09043a 26bd9270 8c7495dd d0368a35
72b158bb cc2a7f04 715b88f8 a69f36e7
@Divide-By-0
Divide-By-0 / rsa-sha256.cpp
Created July 19, 2024 14:23
RSA-SHA256 in C++ Example for Ligetron
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <openssl/rand.h>
#include "sha256.hpp"
#include <string>
#include <iostream>
#include <cstring>
#include <vector>
#include <random>
@Divide-By-0
Divide-By-0 / vii.prove.email
Last active November 6, 2023 15:52
vii.prove.email
Welcome brave explorer. Your task here is as simple or hard as you can make it. The https://emailwallet.org relayer holds the secret word, and can be activated to reveal it in two ways.
1) Send a special TEST transfer to the relayer -- the amount is hidden on this page.
2) The relayer only supports certain mailserver domains. Break the mailserver by using an unsupported domain, and it will reward you in turn.
[Hint](0x638E55F942cBD6f8cb715e9C6a9d747c6F852196).
@Divide-By-0
Divide-By-0 / keybase.md
Created October 30, 2023 22:01
Keybase Proof

Keybase proof

I hereby claim:

  • I am divide-by-0 on github.
  • I am yush_g (https://keybase.io/yush_g) on keybase.
  • I have a public key ASA0Dqq8rq4Lu3TGLhNr91oFy4AmjaROmpUkUrIfm-KnSQo

To claim this, I am signing this object:

@Divide-By-0
Divide-By-0 / nocturne-v1_attestation.log
Created October 29, 2023 22:11
Attestation for nocturne-v1 MPC Phase 2 Trusted Setup ceremony
Hey, I'm Divide-By-0-4804438 and I have contributed to the nocturne-v1 MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (canonaddrsigcheck)
Contributor # 34
Contribution Hash: 276a6174 7c3623dc 8078178e 90d9d285
5436f0ba 58c19896 56a7cf75 43b83783
d22d254d bdf784ad 38c3ebac c42e2854
7fd79bdd ba783db7 64c6b521 8d74d99d