Skip to content

Instantly share code, notes, and snippets.

View signorecello's full-sized avatar

José Pedro Sousa signorecello

View GitHub Profile

"Noir in an Afternoon" cheat sheet

Codespace:

https://github.com/codespaces/new/aztecprotocol/tiny-noir-codespace

Or manually

@signorecello
signorecello / rvckvs_youtube_transcript_fetcher.md
Last active February 1, 2025 00:41
OpenWebUI - Download youtube transcripts

Stopped being a lazy bastard and moved this script to a proper repo here

@signorecello
signorecello / GPtoCSV.md
Last active April 12, 2025 11:25
Converts a Gnosis Pay transaction to CSV format

Gnosis Pay -> CSV

If you're like me and you use great open-source finance software like ActualBudget you probably want your Gnosis Pay transactions in CSV format for an easy import.

Fear not, me (and ChatGPT) have your back:

  1. Login to GnosisPay
  2. Open the console (Ctrl + Shift + J or Cmd + Option + J)
  3. Paste this script. Don't blindly trust me, if you don't know JS then ask ChatGPT to explain what does this script do.
@signorecello
signorecello / pubkeytoaddress.nr
Last active September 6, 2023 06:45
Convert public key to ethereum address in Noir
let hashOfPubKey = std::hash::keccak256(pub_key);
let mut result : Field = 0;
let mut v : Field = 1;
for i in 0..20 {
let index = (20 - i);
result += hashOfPubKey[index + 11] as Field * v;
v *= 256;
}

Attestation to response 0072

Date: Fri Apr 22 2022 - Mon Apr 25 2022 Name: José Pedro Sousa Location: Porto, Portugal Device: A friend's hosted machine Software: SnarkJS version 0.4.16 Challenge: URL: