Skip to content

Instantly share code, notes, and snippets.

View ant4g0nist's full-sized avatar
🐳

Chaitanya ant4g0nist

🐳
View GitHub Profile

nori

PDF/Image to Markdown converter using Claude's vision. Named after Nori, the dwarf scribe from LOTR.

Renders PDF pages to images using macOS native APIs, then uses the Claude Agent SDK to visually read each page and produce faithful markdown — including ASCII art for diagrams.

Why nori?

Most PDF-to-markdown tools extract embedded text, which misses diagrams, figures, and visual layout. nori sees each page as an image and converts what it sees, preserving:

### Yokai Network Identity Verification
Verifying myself: I am chai on Yokai Network. 4c0c92edae80b4d5
You can verify this claim by visiting https://yokai.network/user/chai/proof/4c0c92edae80b4d52180e8aaedce73968a4b33c69269687f8e7b09d82a2c4f80

GitHub Organization Repository Cloner

This script provides a convenient way to clone all repositories from a GitHub organization with just one command. It includes detailed progress information and error handling.

Features

  • Clones all repositories from a specified GitHub organization
  • Shows detailed progress information
  • Handles errors gracefully
  • Skips existing repositories
@ant4g0nist
ant4g0nist / Solana-Summercamp-theme.json
Last active August 15, 2022 05:22
Solana Summer Camp Theme for iterm2
{
"Normal Font" : "Menlo-Regular 12",
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : 0.9375,
"Blue Component" : 0.60546874999999989,
"Red Component" : 0.19921875000000003
},
@ant4g0nist
ant4g0nist / solana_install_version.sh
Created December 11, 2021 09:38
add this to your profile or .zshrc
solana_install_version() {
sh -c "$(curl -sSfL https://release.solana.com/$1/install)"
}
@ant4g0nist
ant4g0nist / injection.mm
Last active November 8, 2022 12:44
Get pids of XPC services launched by Safari/MiniBrowser -> WebKit ProcessLauncher
//
// main.m
// safari_fuzzer
//
// Created by ant4g0nist on 09/11/2021.
//
/*
Build: ➜ clang++ injection.mm -framework Foundation -dynamiclib -o injection.dylib
Usage: ➜ DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=injection.dylib /Users/ant4g0nist/Desktop/macOSResearch/WebKit/WebKit/WebKitBuild/Release/MiniBrowser.app/Contents/MacOS/MiniBrowser
@ant4g0nist
ant4g0nist / ps4.html
Created October 28, 2021 05:04 — forked from sleirsgoevy/ps4.html
PS4 WebKit exploit on 9.00
<script>
var PAGE_SIZE = 16384;
var SIZEOF_CSS_FONT_FACE = 0xb8;
var HASHMAP_BUCKET = 208;
var STRING_OFFSET = 20;
var SPRAY_FONTS = 0x1000;
var GUESS_FONT = 0x200430000;
var NPAGES = 20;
var INVALID_POINTER = 0;
var HAMMER_FONT_NAME = "font8"; //must take bucket 3 of 8 (counting from zero)
@ant4g0nist
ant4g0nist / contractDownloader.py
Created August 11, 2021 14:40
Downloads Contract Code from etherscan.io (works for all *nets) given the deployed url.
#!/usr/bin/env python3
# Usage: ./contractDownloader.py -u https://etherscan.io/address/0x0f51bb10119727a7e5ea3538074fb341f56b09ad#code
# Usage: ./contractDownloader.py -u https://kovan.etherscan.io/address/0x7b6b10caa9e8e9552ba72638ea5b47c25afea1f3#code
import os
import bs4
import sys
import argparse
import requests
@ant4g0nist
ant4g0nist / tezos.md
Created July 20, 2021 15:06
Install Tezos Client on Apple M1
➜  tezos ✗ arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
➜  tezos ✗ arch -x86_64 /usr/local/bin/brew tap serokell/tezos-packaging https://github.com/serokell/tezos-packaging.git
➜  tezos ✗ arch -x86_64 /usr/local/bin/brew install tezos-client

➜  tezos ✗ tezos-client 
Usage:
  tezos-client [global options] command [command options]
  tezos-client --help (for global options)
  tezos-client [global options] command --help (for command options)
//just a quick port of the SKCodecFuzzer harness by j00ru
#define SK_BUILD_FOR_ANDROID
#include <stdio.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>